Page 1 of 2

Google Maps - Route Duration

Posted: Thu Aug 21, 2014 7:24 pm
by Veronika

Is it possible to add the duration of a route between two markers (including traffic) without showing the directions on the map?


Google Maps - Route Duration

Posted: Thu Aug 21, 2014 11:49 pm
by obullei

Hello!

Could you explain your problem with more details?


Google Maps - Route Duration

Posted: Fri Aug 22, 2014 1:36 am
by Veronika

I have a map that shows two markers. The first is my current location. The second is a destination selected on the previous page.

I currently do not show the directions to the selected destination, only the map with markers and traffic.

Is it possible to display the amount of time it would take to drive from the current location to the selected location, without having to show the full directions?


Google Maps - Route Duration

Posted: Fri Aug 22, 2014 2:41 am
by obullei

Hello!

Please take a look here: https://developers.google.com/maps/do...
This should be useful.


Google Maps - Route Duration

Posted: Fri Aug 22, 2014 12:07 pm
by Veronika

Thanks Arina.

If I understand this correctly, does it mean that I cannot use this google distance matrix API with traffic conditions, unless I have a google for business account?


Google Maps - Route Duration

Posted: Fri Aug 22, 2014 1:34 pm
by Kateryna Grynko

Hi Veronika,

This is also for free accounts, but access is restricted.

Users of the free API: 100 elements per query.
100 elements per 10 seconds.
2 500 elements per 24 hour period.


Google Maps - Route Duration

Posted: Fri Aug 22, 2014 2:07 pm
by Veronika

The way I understood it was that the restrictions on free accounts allows you to get duration and distance without traffic conditions. And that only google business accounts can get duration and distance with traffic conditions.

The following screenshot about departure time settings, led me to believe that only business customers can get traffic related info:

Image

Am I interpreting this wrong?


Google Maps - Route Duration

Posted: Fri Aug 22, 2014 2:55 pm
by Evgene Karachevtsev

Hello Veronica,

If something is not clear about this API you should contact Google support, unfortunately this is is outside the scope of our support.


Google Maps - Route Duration

Posted: Sun Aug 24, 2014 8:12 pm
by Veronika

That makes sense. Ok thanks


Google Maps - Route Duration

Posted: Mon Jun 29, 2015 6:57 pm
by Rosario Peditto

Hello, I could not create a service for the distance and the time running.

I created a "Rest" service with url: https://maps.googleapis.com/maps/api/...?

Method: GET

Response Data Type: JSON

Request (Query String): origins and destination and test work fine.

Response: import test as Response

correct?