My favorites | Sign in
Project Logo
             
New issue | Search
for
| Advanced search | Search tips
Issue 235: Get driving directions via HTTP
243 people starred this issue.
Comments by non-members will not trigger notification emails to users who starred this issue.
Back to list
Status:  Acknowledged
Owner:  ----
Type-Enhancement
Priority-Medium
Class-GDirections
Internal-1086632


Sign in to add a comment
 
Reported by fjvela, Mar 19, 2008
It would be great if support for driving direcction via http (same as 
Geocoding via HTTP)

 
Comment 1 by pamela.fox, Mar 26, 2008
(No comment was entered for this change.)
Status: Accepted
Labels: -Type-Defect Type-Enhancement Class-GDirections Internal-1086632
Comment 2 by pamela.fox, May 31, 2008
(No comment was entered for this change.)
Labels: ApiType-Javascript
Comment 3 by dgibson.cestria, Jul 10, 2008
Star it!!!!
Comment 4 by robby.valles, Jul 21, 2008
i need this!
Comment 5 by christoph.ambichl, Jul 30, 2008
would be a great enhancement!
Comment 6 by mhatzitaskos, Aug 05, 2008
Would be great!
Comment 7 by gonen52, Aug 05, 2008
Would love to have it !!!
Comment 8 by dwightdlanier, Aug 20, 2008
Would love to have the HTTP csv return include drive time and distance between two 
addresses!

Thanks!
Comment 9 by aimeel...@hotmail.com, Sep 07, 2008
yes, and the distance too!
Comment 10 by gaggenaumap, Sep 09, 2008
yes, it would be great
Comment 11 by jboesch26, Sep 09, 2008
YES! This would be amazing!
Comment 12 by effhaa, Sep 15, 2008
This will help us with generating PDF-print pages for driving-directions.
Comment 13 by derxtomx, Sep 16, 2008
Star!

Please add distance as well.
Comment 14 by ddgg...@yahoo.com, Oct 02, 2008
Yesm ditto!
Comment 15 by derrick.childers, Oct 07, 2008
Yes we could definitely use this.
Comment 16 by HugoPires.esi, Oct 10, 2008
That helps a lot.
Comment 17 by p.akerboom, Nov 04, 2008
Would be awesome. Star.
Comment 18 by nitneo, Nov 04, 2008
I really need it too ! 

Instead of doing PHP -> Javascript (GDirection) -> AJAX -> PHP (Save distance) ... I
Could have : PHP -> HTML -> PHP ... 

Actually I only need distance and duration.


Comment 19 by ryan.platte, Nov 12, 2008
Having distance and duration would enable some incredible new integration options.
Comment 21 by BarryBHunter, Nov 25, 2008
glompix,

You *can*, but you *may not*, do so as per the Terms of Service.  
Comment 22 by edgar.figueiredo, Nov 25, 2008
It would be really great!!
Comment 23 by pamela.fox, Nov 26, 2008
 Issue 888  has been merged into this issue.
Comment 24 by zeeshanhashmi, Dec 01, 2008
Yes this will be a GREAT ADDITION ! 
Comment 25 by howiemil...@wiltshire.gov.uk, Dec 05, 2008
yes, it would be a great addition

Comment 26 by hipero, Dec 05, 2008
do it fast !!! :)
Comment 27 by m...@wwarby.com, Dec 06, 2008
I hope this feature makes it into the API soon :)

I'm sure I know the answer to this, but by any chance would we be allowed to scrape
the results from http://maps.google.com/?output=html&f=d until this becomes a public API?
Comment 28 by pgir...@scontent.com.au, Dec 08, 2008
Awesome addition.
Comment 29 by kpnnl.001, Dec 14, 2008
i need this as well!!!
Comment 30 by marcoberi, Dec 15, 2008
Yes! Nice idea!
Comment 31 by GetSureshV, Dec 25, 2008
would be a great enhancement!

Comment 32 by aries84ct@hotmail.com, Dec 26, 2008
I want this feature! :-)
Comment 33 by api.roman.public, Dec 30, 2008
Hi all,

No need to add a comment to vote for the feature; simply 'star' it by clicking the
empty star icon to the left of the feature title at the top.

- Roman
Comment 34 by jboesch26, Dec 31, 2008
I saw a post at
http://groups.google.com.au/group/Google-Maps-API/browse_thread/thread/af1dd5cbeaccf32d
that showed this way of getting the info instead of javascript...

http://maps.google.com/maps/nav?key=ABQIAAAAzr2EBOXUKnm_jVnk0OJI7xSosDVG8KKPE1-m51RBrvYughuyMxQ-i1QfUnH94QxWIa6N4U6MouMmBA&output=js&doflg=ptj&q=from%3A%20500%20Memorial%20Drive%2C%20Cambridge%2C%20MA%20to%3A%204%20Yawkey%20Way%2C%20Boston%2C%20MA%2002215%20(Fenway%20Park)&callback=_xdc_._0fl8a133u

Is this something that Google allows?  It's essentially what most people want but is
it the right way?
Comment 35 by pamela.fox, Jan 02, 2009
Driving directions can only legally be accessed through the Javascript API/Flash API 
classes at this time.
Comment 36 by bendalton, Jan 03, 2009
I definitely need this functionality for use in an application... 
Comment 37 by daniel.w...@mobilexag.de, Jan 08, 2009
Routing via HTTP is the only thing keeping my company from making the switch to
Google Maps.
Comment 38 by pamela.fox, Jan 08, 2009
To those who commented on the thread-

Can you clarify what your use case is, exactly?

This will help us quite a bit, thanks!
Comment 39 by dwightdlanier, Jan 08, 2009
USE CASE EXPLAINED:

Most importantly I would like to be able to get drive time and distance between two 
points added to the CSV return string from an HTTP API request between two locations 
(address/latlong --> address/latlong).

I see that others have requested that the driving directions also be added as comma 
delimited returns from the http request.  I like this idea as well, but it is not my 
main priority.

Right now I use Python to call the google maps geocode API via HTTP.  I don't have 
the time or the patience to learn java script, so being able to get drive time and 
distance in the same manner that I get my geocode results via HTTP and CSV would be 
fantastic.

I use this integrated into Geographic Information Science (GIS) scripting work.  If 
I were able to get these extra values (distance, duration) easliy through HTTP 
return it would simplify my code and project by so much and would open some very 
useful doors to grow the project in new directions.

Thanks!

Dwight
Comment 40 by pamela.fox, Jan 08, 2009
Please describe how the directions info would be used in your maps mashup. We don't
offer standalone services - so like geocoding, directions would have to be combined
with a map. Thanks!
Comment 41 by m...@wwarby.com, Jan 09, 2009
@Pam: My use case is an accessible alternative user interface. I work in local
government where I'm required to provide accessible alternatives that use no
JavaScript and work with screen readers and the like. I would want to display text
directions requested over HTTP underneath a map image from the Static Maps API, much
like what maps.google.com does if you specify output=html in the query string.
Comment 42 by m...@wwarby.com, Jan 09, 2009
@Pam: My use case is an accessible alternative user interface. I work in local
government where I'm required to provide accessible alternatives that use no
JavaScript and work with screen readers and the like. I would want to display text
directions requested over HTTP underneath a map image from the Static Maps API, much
like what maps.google.com does if you specify output=html in the query string.
Comment 43 by bendalton, Jan 09, 2009
@Pam:

My use case involves comparing different destination/route options for a certain set
of criteria based on the overall time in transit. This needs to be done on the
back-end for us since it involves multiple users of our service. 
Comment 44 by m...@wwarby.com, Jan 09, 2009
@Pam: It occurs to me that to use this feature in conjunction with the static maps
API, which going by what you are saying we would be contractually obliged to do,
you'd want to be able to draw the directions line on the static map. Now, since by
definition you would be using these HTTP APIs to avoid using JavaScript, you wouldn't
be able to chain your requests together and draw the polyline on the static map from
the result of the HTTP directions request. Therefore, you'd need a companion feature
in the static maps API to draw a directions polyline based on start and end points
provided in the query string.
Comment 45 by m...@wwarby.com, Jan 09, 2009
@ben, dwight: I don't think either of your use cases meet the Google Maps API terms
of service which state that the API must be used on a public website. The only use
cases I can think of for an HTTP directions API that won't conflict with the terms of
service are ones that a revolve around the need to display directions in a public
user interface without the use of JavaScript.

The only reasons I can think of to want to avoid the use of JavaScript are
accessibility, lack of JavaScript support in the target browser (particularly with
mobile devices), when the user has disabled JavaScript in their browser or when
bandwidth/performance is a major concern (the Javascript API is heavy on both
compared with an HTTP API).

If everyone says they want this feature so they can do their off-line processing with
the returned data, we are not going to get this feature given to us...
Comment 46 by bendalton, Jan 09, 2009
My use case involves a user visiting our public site (currently in development),
using the javascript maps api, but also having the server quickly compare their
entered data with pre-existing, saved location data and returning the result set
which will eventually be sorted on time-in-transit information. This data isn't
needed for display at that time, but instead is used to establish relationships
between entities in our data model. But all of this action is initiated through the
use of our public-facing service/map page.

I have seen dozens of implementations of the geocoding api via http in all forms of
libraries for use at the server-tier. Surely, this is no more a violation of TOS than
that is. Right?

Comment 47 by jbliese...@bliesener.de, Jan 09, 2009
Here's my use case: We operate a car tracking site which is publicly available,
however some functionalities are restricted to logged-on users. Programming is done
in Google Web Toolkit. One of the functionalities we require is that the SERVER
determines a route and stores it in its database and then sends it to the client. 

Oh, and - slightly off topic - there are two more functionalities we miss for exactly
the reason wwarby mentioned (no Javascript on mobile devices): 

1) REVERSE GEOCODING through HTTP and 
2) Network Link support in Google Maps for Mobile.

Comment 48 by daniel.w...@mobilexag.de, Jan 12, 2009
@m...@wwarby.com:
As far as I know, the need for a public website applies only to the free version.
Companies who are Premier or Enterprise partners do not have this particular restriction.

@Pam:
We have an application allowing companies to manage their field staff. This involves
central route planning for a number of people at once, so client-based per-user
routing does not solve our problem.
Comment 49 by m...@wwarby.com, Jan 12, 2009
@Daniel: That is true, but as far as I can see there is not precedent for Google
developing features that are only useful to Premier or Enterprise partners Google
need to be convinced of the legitimate case for this feature within the community of
free users. Otherwise they just won't bother.
Comment 50 by andrew.leach.1, Jan 12, 2009
@m...@wwarby.com #44: Could you not parse the result of an HTTP directions request
server-side in order to create a static map url which contained a path? [I've starred
this issue too: it's necessary for fully-accessible maps]
Comment 51 by m...@wwarby.com, Jan 14, 2009
@andrew: I'm no expert in Google's TOS but judging from what Pam has said in previous
threads, I'd say what your scenario is well within the TOS - the important thing is
that you're using the functionality in conjunction with the public presentation of
maps. For an HTTP directions API to be useful, you'd almost always have to call it
server-side and process the result - what else could you do? If you called it
client-side, you'd have to do so with JavaScript which would utterly defeat the purpose.
Comment 52 by rodrigo.sotobarrios, Jan 16, 2009
I am currently developing a applications that needs to create a route from point A to
point B and it would be really helpful to have a way to get this information from
google similar to what they have for geocoding.
Comment 53 by radioman.lt, Jan 16, 2009
full support of google services(routing, maping, markers, caching): http://
www.codeplex.com/gmap4dotnet
Comment 54 by mudcatthefish, Jan 22, 2009
My company is happily using the Google maps/directions full API (javascript) to
direct our patients and visitors to our hospitals. Everything works great on our full
site, but my use case for static directions comes into play for our mobile site.
Roughly half of our  mobile users do not have javascript-enabled devices, so we are
displaying static maps. 

At this point, I cannot offer our mobile users driving directions. To me it seems
like this is the most important part of a mobile map for users on the go. Please help.
Comment 55 by allhotelmotel, Feb 25, 2009
How soon this feature will be available?
Comment 56 by eskopinski, Feb 26, 2009
???

I need too
Comment 57 by foreverneilyoung, Mar 03, 2009
Currently using the "raw" API for directions, but this is against the TOS,  I know. 
Use case: Mobile phone with small data plan, just keen to see a way from A to B via C 
as a textual description, getting the polyline and track the match with the internal 
GPS. As said, have this running on my N-series in Python, but slightly illegal. Not 
that fat, as Google Maps for Mobile currently is. :)

Stared the issue. 
Comment 58 by twalters1984, Mar 05, 2009
I would love to be able to provide driving directions on my business profile pages
and my city pages.

I currently retrieve the users latitude, longitude, city, and state using maxmind's
IP address lookup feature. I have both the starting and endpoint when the page loads.
There should be no need for javascript to look that up when it can be provided
server-side.
Comment 59 by modernlouny, Mar 10, 2009
I need it too
Comment 60 by hugoff, Mar 10, 2009
I need it.
Comment 61 by me...@radgo.ch, Mar 10, 2009
that would be very useful for mobile browser without javascript!
Comment 62 by chad.lester, Mar 11, 2009
@Pam - The San Francisco Unified School District is considering a redesign of the
student assignment system for the 2010/2011 school year.  It would be wonderful if
the school district could use Google maps to compute driving distance / public
transit distance from each applicant to each school.   This would be approximately
500,000 requests (5000 kindergardners * 100 schools), once per year.

The end result is that better decisions could be made on where to send children to
school given the districts conflicting goals of increasing student diversity while
minimizing travel time.

Comment 63 by ru...@cartersfinejewelry.com, Mar 16, 2009
@Pam - Google Maps provides a great tool to enhance existing Mobile Based
applications. Unfortunately, bandwidth, JS limitations, etc. limit my company's usage
of the Google Map API. We build software for the Windows Mobile Platform and are
stuck using static maps without driving directions. 

This change to the Google Map API would add value to our application as well as
additional revenue for Google (we would be required to get the Enterprise License for
Google Map)
Comment 64 by sommsnet, Mar 19, 2009
This is a must for our mobile web application. We use Google Static Map API, but it
is really poor without directions.
Comment 65 by folkesson, Mar 27, 2009
@Pam - with this feature Google Maps would be a valid option for my company. We
develop an application for optimal route planning, and need to store the driving
distance between all possible route stops. These distances will be cached, but any
addition of route stops should not require a user action to calculate the distance to
all other route stops. I we are allowed to do that over http it can be handled by a
server side service.

Comment 66 by nagma.yasmin, Apr 06, 2009
When this feature will be available to use?
Comment 67 by cleclef, May 11, 2009
We are developping an application that track vehicles via GPS, and we need to 
compare real travels against estimated travels (via Google GDirections). We also 
need to estimate travels between peoples' house and first action of their days (both 
geocoded). This is now legal data that must be provided to taxes services in Belgium 
(personnal travel that leads to taxes reduction). For both functionnality, we 
currently keep a web browser opened that do this job. This can't be a stable 
solution for production. GDirections via HTTP request would be much easier, 
scripting via Java server application! 
Comment 68 by pamela.fox, May 24, 2009
Changing status of "Accepted" issues to "Acknowledged", to clarify their 
state.

We may not be able to resolve all bugs or fulfill all feature requests, but 
we do thank you for filing them, and we will continually revisit all 
acknowledged issues and evaluate their feasibility. Thanks!


Status: Acknowledged
Comment 69 by Engg.bhawna, Jun 05, 2009
HI 

Driving Directions via http will really be of great help in my use case. 
Comment 70 by msameerhassan, Jul 13, 2009
Hello 
i too need this ,it would be really helpful ..as for now
My program is in java where i get the latitude and lngitude from mysql database 
and i need the distance between there two points as for now i am just calculating the
distance using the squareroot of (x1-x2)(x1-x2)+(y1-y2)(y1-y2)
can anyone let me know how to get the real driving distance
Thanks!
Comment 71 by avula810, Jul 20, 2009
Driving Directions through WebService or Rest or Http would be really heplful for us.
Comment 72 by mufumboel, Jul 22, 2009
http would be great. also, directions trough V3 seems a bit tricky :(
Comment 76 by letslunchat, Jul 23, 2009
hello, 
i've managed to get the driving directions trough HTTP calls, it's very simple and
uses the same system of this demo:
http://gmaps-samples.googlecode.com/svn/trunk/gdirections/directions-static.html

I have written an article at my blog, feel free to check it at
http://mufumbo.wordpress.com/2009/07/23/server-side-driving-direction-with-google-maps-api-with-php-for-wap-and-web/
there's some PHP code also. 

Does anyone know if it goes against the terms of service?

thanks!
rafael
Comment 77 by andrew.leach.1, Jul 23, 2009
What is unclear about the Terms? Paragraph 10.1 seems quite explicit: this isn't
using a method allowed by the documentation, so it's not permitted. The /nav URL has
appeared in the Group, see this thread -
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/6daebf2e2404e418/

Nothing has changed in the last two years. That's why this request was created and
why it's so popular.
Comment 78 by cleclef, Jul 23, 2009
I ask Google support, call /nav ... isn't allowed by the term of license. Not 
documented == not allowed.
Comment 79 by troy.dm, Jul 25, 2009
My use is for the cyclists of the city of Austin TX.  Anyone who wants to go on group
rides can view available routes created and modified (for biycle rather than car use)
by the ride leaders.  Function for mobile devices is also very important.  

See: pickupultimate.com
Comment 80 by cadorfo, Jul 29, 2009
I need it too
Comment 81 by ben.fos...@retroviz.com, Jul 30, 2009
I really require this functionality. We have already paid for a premier api licence. 
However, we need to be able to retrieve distance calculations using server side 
methods (no javascript). This is already possible with geocoding so why not distance 
calculations.

Google need to be very careful as Microsoft's newly launched Bing Maps range 
includes not only interactive maps but also a full web service api. Currently it 
looks like we will not renew our contract with Google but instead move our 
applications to Bing Maps since it offers both client and server side integration.
Comment 82 by pdbinder, Jul 31, 2009
This would be nice.
Comment 83 by mudcatthefish, Jul 31, 2009
Many folks, including myself, have been asking for this functionality for over 16
months now. Can someone from Google please post something to let us know the status
of this request? I am sure all of us would like to know if Google is planning on
providing this in the future, or if we should stop wishing for something that may
never be available. Thanks!
Comment 84 by pamela.fox, Aug 01, 2009
We are still hoping to provide this service at some point. HTTP services take longer
to produce as they require commitment to preserving the output format, and it takes
time to produce a flexible and usable output format. Thanks for your patience.

Comment 85 by pamela.fox, Aug 04, 2009
(No comment was entered for this change.)
Labels: -ApiType-Javascript
Comment 86 by brett.sheeran, Aug 09, 2009
It’s a shame the Google TOS bans this:

There *is* an Australian mobile site that generates static Google maps with 
directions. I would be interested to know if the implemenation is legitimate and if 
so, how they do it.

To try go to:
http://virgin.truelocal.com.au/m1.5/welcome.action
Click on “Get Directions”
Enter addresses:
10 elizabeth st melbourne
10 collins st melbourne

Regards Brett
Comment 87 by rockyxa, Aug 10, 2009
I starred this too. Would help my company out a lot and would probably make us buy the premium version. So... 
hurry ;-)
Comment 88 by r...@encoreairportcarservice.com, Aug 15, 2009
it would be an incredible addition. We are developing application for a mobile device
that does not support JavaScript/Flash. It will read the directions for drivers just
like voice prompts from nav systems. 
Comment 89 by theambig...@gmail.com, Aug 24, 2009
I just wanted to say that this would be extremely useful. For those interested,
MapQuest opened up their API this past July and their directions are free to all. 

http://devblog.mapquest.com/2009/07/20/our-new-directions-web-service-goes-to-beta-not-the-moon/
Comment 90 by mufumboel, Aug 31, 2009
thanksfor the news theambig...,
i will be switching to mapquest asap. probably it's possible to use mapquest for
directions and google for maps. I hope to be able to migrate everything to mapquest
without much effort. 

Comment 91 by glavoie, Sep 17, 2009
We are currently using Google Maps go help citizens to find offices of a Gouvernement
du Québec department. The citizen can enter his postal code on our website and the
direction API is used to find the 3 nearest offices. Now, we need to make an
accessible version of this service using NO JavaScript. The search for the 3 nearest
offices has to be done server side. As I understand, based on the ToS, it's not
possible to use the "/nav" path to make direction requests. We really need this
feature quickly. As other posted, Bing Maps and MapQuest started to offer this kind
of Web Services. 
Comment 92 by chung.glp, Oct 24, 2009
This is very help
Comment 93 by HedgehogJim, Oct 28, 2009
In our case this is really helpful in our server-based activities. We have 
situations where we need to calculate distances between known points and then use 
those distances in server-based calculations and in some cases to store those 
distances within our database for furture analysis.
Comment 94 by pdbinder, Oct 28, 2009
You can calculate distance as the bird flies via the Lat/Long of 2 points. But I
guess you probably mean distance on a road.
Comment 95 by xw...@sybase.com, Nov 08, 2009
I also need this feature.
I develop apps for Windows and Windows Mobile in C#.
I cannot develop them as Web apps.
So the static maps with directions/routing support is very important.
It is certainly doable to dev a wrapper for the full Maps API, but it is a too big 
effort. Then why not using Bing Maps? The full WS API is there.
I think that Google should improve the static maps API so more developers could use 
it.

Comment 96 by vjkr.singhal, Nov 17, 2009
I am running a free community site and would love to have this feature. We like to
have a functionality where a user can send sms with two locations and we would be
able to send them directions through sms, targetting basic mob-phones and not advance
media or blackberry mobs. We have no problem in putting "powered-by:google" and or
anything similar whatever google prefers.
Comment 97 by john.gracy80, Nov 18, 2009
Is it possible to use the nav/ service in research purposes?

I’m writing a research paper on the difference between Android and Windows Mobile 
application development. I record GPS positions in timed intervals (5 or 10 minutes 
apart) for better battery life on the smart device. Later I need to calculate the 
driving distance between these recorded points. 
This is NOT a commercial application. And it works great with the /nav service.

Comment 98 by mnvraghuram, Nov 23, 2009
Hi,
This feature for getting driving duration via http will be a great feature and it
will really help us out in implementing our functionality.

Comment 99 by vbatista, Nov 24, 2009
Would be so pleasant have driving duration via http.
Comment 100 by impdevel...@gmail.com, Nov 26 (6 days ago)
This would be awesome. Go Google.
Comment 101 by fwdeible, Dec 01 (45 hours ago)
We need distance via http.
Sign in to add a comment

Hosted by Google Code