Veronika
Posts: 0
Joined: Thu Aug 07, 2014 1:13 pm

Google Maps - Route Duration

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

obullei
Posts: 0
Joined: Thu Jun 05, 2014 12:17 am

Google Maps - Route Duration

Hello!

Could you explain your problem with more details?

Veronika
Posts: 0
Joined: Thu Aug 07, 2014 1:13 pm

Google Maps - Route Duration

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?

obullei
Posts: 0
Joined: Thu Jun 05, 2014 12:17 am

Google Maps - Route Duration

Hello!

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

Veronika
Posts: 0
Joined: Thu Aug 07, 2014 1:13 pm

Google Maps - Route Duration

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?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Google Maps - Route Duration

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.

Veronika
Posts: 0
Joined: Thu Aug 07, 2014 1:13 pm

Google Maps - Route Duration

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?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Google Maps - Route Duration

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.

Veronika
Posts: 0
Joined: Thu Aug 07, 2014 1:13 pm

Google Maps - Route Duration

That makes sense. Ok thanks

Rosario Peditto
Posts: 0
Joined: Mon Jun 29, 2015 6:57 pm

Google Maps - Route Duration

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?

Return to “Issues”