Title: Google Miles
Last modified: May 8, 2024

---

# Google Miles

 *  Resolved [blackarmy](https://wordpress.org/support/users/blackarmy/)
 * (@blackarmy)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/google-miles/)
 * Hi Team,
    I have just purchased the pro version. Also here are the list of our
   requirements that we would like to achieve in our websites:
    1. is it possible to integrate Google Miles, and calculate a distance and charge
       the customer according to per KM.
    2. Also Is it possible to integrate Google Miles in Vehicle Search Section so that
       when customer put an delivery address they will be able to see number of KM (
       As per The Google Mile) .

Viewing 1 replies (of 1 total)

 *  Plugin Author [e4jvikwp](https://wordpress.org/support/users/e4jvikwp/)
 * (@e4jvikwp)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/google-miles/#post-17740566)
 * Hi,
 * Thanks for your message and for getting the commercial version of the plugin.
 * We understand the requirements of your website, and although VikRentCar allows
   to load the Google Maps API libraries in JavaScript by entering your Google Maps
   API key from the configuration settings, the only Google Maps API endpoints used
   by our plugin serve to render a map with a pin/marker for each location configured
   within our plugin. Unfortunately, there are no functions that make use of their
   Distance Matrix APIs to calculate a distance between two points. As you’ve noticed,
   entering a delivery address is not a native function, but such features could
   be implemented by adding custom “Views” through WordPress native plugins to extend
   the native functions, or you could override some of the existing pages to add
   the required tools. In this case you could have your developers use the “Overrides
   Manager” tool available in the configuration page to work on a copy of the original
   source code of a specific page/View.
 * Moreover, the commercial version of the plugin allows to define custom Options/
   Extra Services that would apply an additional fee to the rental order. You could
   use the native functions to set up a mandatory option/extra that accepts a number
   for the calculated distance in Km between two addresses. By default this extra
   fee will be displayed as an input field of type number and its cost should be
   per km/mile (cost per quantity). Once you have this set up, any PHP developer
   could override that page to allow the users to enter their delivery address and
   calculate the distance in Km/Miles between the two points and populate the input
   field of type number with the value obtained. This is just an example on how 
   you could achieve these functions through custom overrides that would not be 
   affected by installing future updates for our plugin.
 * We hope this helps!
   The VikWP Team

Viewing 1 replies (of 1 total)

The topic ‘Google Miles’ is closed to new replies.

 * ![](https://ps.w.org/vikrentcar/assets/icon-256x256.png?rev=2203504)
 * [VikRentCar Car Rental Management System](https://wordpress.org/plugins/vikrentcar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/vikrentcar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/vikrentcar/)
 * [Active Topics](https://wordpress.org/support/plugin/vikrentcar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/vikrentcar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/vikrentcar/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [e4jvikwp](https://wordpress.org/support/users/e4jvikwp/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/google-miles/#post-17740566)
 * Status: resolved