Questions tagged [driving-directions]

140 questions
91
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,765
  • 10
  • 78
  • 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
  • 36,946
  • 82
  • 271
  • 487
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,940
  • 12
  • 44
  • 87
13
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
  • 40,709
  • 36
  • 140
  • 187
12
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
  • 4,161
  • 13
  • 47
  • 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…
LEE
  • 3,335
  • 8
  • 40
  • 70
8
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
  • 81
  • 1
  • 1
  • 2
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,399
  • 1
  • 13
  • 25
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,503
  • 7
  • 28
  • 28
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
3 answers

Shortest route with no set destination in Google Maps V3?

So I'm just learning javascript to mess with the Google Maps API. I was wondering if anyone had an elegant solution to this problem I'm running into. A Google Maps route request must contain three things (origin, destination, and travelMode). My…
Crag
  • 458
  • 4
  • 14
5
votes
6 answers

Directions API total distance & duration with waypoints

I am getting directions including waypoints from Directions API in my Android app. It contains multiple "leg" segments which has its own distance and duration. Is there a way to sum all distances and durations get the total values? Example: Stripped…
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…
1
2 3
9 10