Questions tagged [driving-directions]

141 questions
90
votes
1 answer

J2ME/Android/BlackBerry - driving directions, route between two locations

On Android 1.0 there was a com.google.googlenav namespace for driving directions: Route - Improved Google Driving Directions But in newer SDK it was removed by some reason... Android: DrivingDirections removed since API 1.0 - how to do it in…
Maksym Gontar
  • 22,678
  • 9
  • 76
  • 114
19
votes
2 answers

Google map driving direction source code for their example?

Google gave an example http://googlemapsapi.blogspot.com/2007/05/driving-directions-support-added-to.html Is the source code available somewhere or a tutorial on that precise example ?
user310291
  • 33,174
  • 71
  • 241
  • 439
13
votes
1 answer

Rotate marker based on driving direction

I have a marker in my Google Maps map that looks like this: When the user is driving, I want to rotate it based on his driving direction. How can I achieve this? I should probably use previous location and current location coords for calculation,…
Gintas_
  • 4,483
  • 10
  • 36
  • 74
12
votes
4 answers

Is there a way to show road directions in Google Map API v2?

I was looking for an answer using Google and here, and the only relevant posts I have found are: Google Maps Android V2 and Direction API Get driving directions using Google Maps API v2 but there is no answer there. So I have already mentioned it…
Emil Adz
  • 38,699
  • 35
  • 127
  • 177
10
votes
5 answers

Google map direction services waypoints more than 50

Documentation says that waypoints limit is 8 points. But I have to find best waypoints order list from more than 50 waypoints. How to do that? I am able to find waypoints order by using Start + Destination + 8 Waypoints But I need help for more than…
8
votes
2 answers

Google Maps API [Directions API] Waypoints limitation?

Documentation says that waypoints limit is 8 points. But I have to draw a line with more than 8 waypoints. How to do that?
vale4674
  • 3,931
  • 13
  • 41
  • 72
8
votes
5 answers

How to get Google Maps Public Transit Directions by HTTP server-side request

I use such urls like: http://maps.google.com/?saddr=546%206th%20Avenue,%20New%20York,%20NY%2010011%20(Sixth%20Avenue,%20New%20York)&daddr=W%20103rd%20St,%20New%20York,%20NY%20&dirflg=r But it returns full html page. Does anybody know how to get such…
user323075
  • 81
  • 1
  • 1
  • 3
8
votes
1 answer

Turn (rotate)marker position based on direction over the route

I've a route created along with a polyline over google maps api v2 (Android). My custom marker moves along the route which i achieved by creating a thread. I also get the maneuvers (turn-left, turn-right, etc). Now as my marker starts moving (a car…
Abhilash
  • 2,667
  • 6
  • 29
  • 59
7
votes
2 answers

How to show actual road route driving mode in map in Android

I have a web application, in which we add lat and lng and in web it shows driving route clearly in the map. I have send the same details including api, lat and longitude to the android using json. But in android app, map doesn't show proper path.…
Elizabeth
  • 1,179
  • 1
  • 10
  • 25
7
votes
6 answers

data structure to support google/bing maps

I was wondering what the data structure is in an application like google/bing maps. How is it that the results are returned so quickly when searching for directions? what kind of algorithms are being used to determine this information? thanks
user256412
  • 71
  • 1
  • 1
  • 2
7
votes
2 answers

Google Maps HTTP API for driving and walking directions

Do you know how I can get walking directions from Google by giving two specific coordinates? How can I send simple HTTP GET requests and have the result in a KML file? I don't want to geocode, but get the driving directions as the KML file returned…
maiky
  • 3,096
  • 7
  • 25
  • 27
5
votes
2 answers

Snap to nearest street

You guys have been helping out solving some of my problems with a Google Map lately, and thank you for that. I am almost done with this - only one problem is left. When I place the first marker on the map, it snaps to the nearest street (which is…
Jan
5
votes
5 answers

Travelling salesman with a few constraints

I'm trying to find the most optimal way to driving through points say A, B, C and D with some additional constraints - certain points have to be reached before others. Say D has to be reached before B. In other words ordering for some of the…
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,029
  • 18
  • 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,833
  • 3
  • 28
  • 51
1
2 3
9 10