Questions tagged [driving-directions]
140 questions
4
votes
1 answer
Is there a way to add custom roads (e.g. off-road routes) to google maps and then get directions to use them?
I want to add some custom roads using google maps api (i.e. off-road routes, gravel roads that aren't marked as roads in the map, etc) and then use those roads in conjunction with existing roads to get directions. I know this isn't possible out of…

valentinas
- 4,277
- 1
- 20
- 27
4
votes
1 answer
how to use Google Map's API in Iphone?
I want to figure out how Google Map's API to give us directions.
Create a sample tool where I can use my location as a starting point and choose another location and I can view directions (both driving and walking) in text and on map within my…

Jean-Luc Godard
- 1,873
- 3
- 28
- 53
4
votes
3 answers
Describe relative angles between points (like driving directions)
I have a list of points with x, y coordinates. I know how to get the distance between points with sqrt(pow($x2 - $x1, 2) + pow($y2 - $y1, 2)) and the angle between points with atan2(y1 - y2, x1 - x2).
How can I calculate the relative angle between…

aan234g
- 41
- 2
4
votes
1 answer
How to get markers after calling drive directions in Google Maps API?
I just started working using Google Maps API yesterday, and trying to set up drive directions to my map. My problem is: when I call the function load,
// [...]
gdir = new GDirections(map, directionsPanel);
// [...]
gdir.load("from: " +…

Ivan Rocha
- 87
- 1
- 1
- 6
4
votes
1 answer
Calculate driving distance locally, without Google Maps API
I need to calculate a lot of driving distances, because I am running a genetic algorithm that calculates the best route given some latitude and longitude coordinates. Currently, it is using the Haversine formula, but it is not sufficient to produce…

Marcelo Paulon
- 57
- 3
4
votes
1 answer
Google Maps - Autocomplete & Directions API - trigger onchange() for dropdown list?
I have Google Map and two inputs. Both of them use autocomplete, like this:
//first input autocomplete
var input1 = (document.getElementById('start'));
var autocomplete1 = new google.maps.places.Autocomplete(input1);
autocomplete1.bindTo('bounds',…

Wordpressor
- 7,173
- 23
- 69
- 108
4
votes
2 answers
Directions and Route in iPhone using Bing Map
Can we load a Bing Map in iPhone and show Route between source and destination points thourgh some waypoints.

sagargeo
- 41
- 2
4
votes
2 answers
Updating Current Location in Google Maps using UIWebview in iOS
I have a WebView I created in app which calls Google Maps Directions to plot out the route between the Current Location and a POI.
The entire google map with directions is loaded as soon as the webView loads. Now I need to update the map with my…

SashaZd
- 3,315
- 1
- 26
- 48
4
votes
3 answers
How can I prevent the results produced by Google Maps API v3 DirectionsService being influenced by current traffic conditions?
I have written a website that uses the DirectionsService of Google Maps API v3 to find the driving distance between two user-defined locations.
I have found that it produces different results at different times of day or different days of the…

jofitz
- 459
- 1
- 3
- 12
4
votes
1 answer
How to programmatically launch map application in android to show direction?
My client asked me to show directions between two location. Therefore he wants that our application should launch map application of android and show direction between two location. I could not find the solution for this problem.
Therefore can…

Sanchit Paurush
- 6,114
- 17
- 68
- 107
3
votes
1 answer
Walking, bicycle and public transport directions with time required in each mode , iPhone
I am using following url to get driving directions between two locations.
NSString* apiUrlStr = [NSString stringWithFormat:@"http://maps.google.com/maps?output=dragdir&saddr=%@&daddr=%@", saddr, daddr];
What changes need to be done in above query…

alekhine
- 1,600
- 4
- 20
- 45
3
votes
2 answers
Getting driving instructions in android application using Google Directions API
I have this android app where I am supposed to show the driving directions to the users.
I am using Google Directions API for this.
This involves making request to their url and getting the JSON in result.
Now, the problem is : the driving…

Ankit
- 289
- 2
- 6
- 13
3
votes
1 answer
Geographic Data Web Service
I am thinking about writing a program to check some mileage claims (about 45,000 of them actually) made by Members of the British Parliament recently.
The data I have is quite course - the origin and destination of the trips is generally provided…

Martin Milan
- 6,346
- 2
- 32
- 44
3
votes
2 answers
How to parse distance data with iphone from google directions api?
I'm trying to get the distance between two places (by way of roads), and I get that an http request will return a XML with the following data
http://code.google.com/apis/maps/documentation/directions/#XML
but I don't get how to use NSXMLParser to…

Marty
- 5,926
- 9
- 53
- 91
3
votes
1 answer
Struggling to implement google directions api in Android App
I would like to implement google walking/cycle directions into an Android app im creating but I'm struggling to get my head around how to do this. I've recognised that the most accepted way is to query google via http to retrieve a kml file, which…

Ally
- 1,476
- 3
- 19
- 30