Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
We are getting distance & duration between two locations in Google map. We will find duration according to different Traveling Modes such as –
driving
walking
bicycling
transit
You’ll need to request the directions over HTTP. You can do this directly from Android, or via your own server.
Request the google map server with URL like-
with GET request method.
where “output” is a format of the response and parameter contains values.
Connection to communicate Map Server with URL.
Getting the response from the Google map server and parse response string to JSON format.
Getting distance & duration-
Sources: Google Maps Directions API
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
String response = downloadUrl (url);
I am adding this in the article as well.
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
We've bought a Shopware Extension which is a hybrid App, which we can now offer in the Google Play Store and the IOS App Store. I'am still impressed how fast and how sharp the support team leads us through every process of the App-Store clarification. Very fast and useful response.
Markus Walter
Founder, Das Apartment Living
USA
India
Global
Name
Email
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.