Questions tagged [directions]

Directions refers to point-to-point steps returned from a map API or application.

References

455 questions
55
votes
4 answers

Get driving directions using Google Maps API v2

I am trying to get the driving direction between the two positions: LatLng(12.917745600000000000,77.623788300000000000) LatLng(12.842056800000000000,7.663096499999940000) The code which i have tried: Polyline line = mMap.addPolyline(new…
Anukool
  • 5,301
  • 8
  • 29
  • 41
20
votes
5 answers

Google Directions API

In the JSON output, there is a field "maneuver" within a "step". In this "turn-left", "turn-right", "turn-slight-left", etc. Example is here Where could I find the definition of the "maneuver" field, and the list of possible values? There is no…
user2633218
  • 263
  • 1
  • 2
  • 7
14
votes
2 answers

Get stopover towns using the Google Maps API (directions)

I am new to the Google Maps API (3.0). I would like to get stopover cities based on a direction query to the Maps API and did not find any documentation on this specific topic so…
Yann
  • 877
  • 14
  • 25
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…
11
votes
4 answers

Opening maps with current location and directions in iOS 6

I am building an app that can open the Maps app with directions from the user's current position to another position. The code looks like this: - (id)resolveDirectionsFromCoordinate:(CLLocationCoordinate2D)startCoordinate…
Daniel Saidi
  • 6,079
  • 4
  • 27
  • 29
10
votes
2 answers

Google Maps API directionsService.route different from Google Maps Directions

I'm using Google Maps JS API to search for nearby places, i.e. restaurants based on my LatLng : var request = { location: myLocation, rankBy: google.maps.places.RankBy.DISTANCE, types: ['bar', 'cafe', 'food', 'liquor_store',…
damianb
  • 141
  • 1
  • 1
  • 5
9
votes
3 answers

Displaying multiple routes using Directions API in Android

I am using this class to display a route on a map. The problem is that it only displays one route. What I want to do is display multiple alternate routes on the map. Even thought the server response has multiple routes, it only parses the first…
Vinay Gaba
  • 1,156
  • 3
  • 12
  • 26
9
votes
3 answers

How do we get the shortest distance route from point A to B by default from Google Direction API

How do we get the shortest distance route from point A to B by default from Google Direction API suggested alternative routes? By default it gives us shortest duration routes depending upon the current traffic conditions. I have noticed that google…
Rameshwor Maharjan
  • 242
  • 2
  • 3
  • 10
8
votes
3 answers

Is it possible to get suggested routes from google maps in android2.2 application?

I am using the following url to get driving directions from google maps. http://maps.google.com/maps?f=d&hl=en&saddr=location1&daddr=location2&ie=UTF8&0&om=0&output=kml I am getting only one route in my KML file. But when we searched same locations…
Yugandhar Babu
  • 10,311
  • 9
  • 42
  • 67
8
votes
5 answers

List of bus stops from Google Maps

I am trying to build web app where you input your address and it will give you list of bus stops in your area. I want to use Google Maps for this, but i can't find the way to use them for this. Is there any way to get list of points on maps in, lets…
Pirozek
  • 1,250
  • 4
  • 16
  • 25
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
3 answers

Highlight a specified route on Google Maps v2 Android

Right, so I'm currently using the Google Directions API in my app to retrieve the route between two locations. When I send a request for a route directions, I retrieve a number of details in JSON regarding the route including the names of every road…
7
votes
4 answers

I want to make an Android app with a map that provides directions, but not Google Maps

I want to make an Android App that loads a map that I have created of the inside of a building. I want it to provide directions between one room to another. And between floors if possible. I would like the map to be zoomable, and clickable too. i.e.…
Aaron Doyle
  • 111
  • 1
  • 2
  • 6
7
votes
1 answer

Error: java.lang.IllegalStateException: no included points

I am getting this error when trying to search a place on map. I tried other resolutions when searching, but no luck. java.lang.IllegalStateException: no included points on this line: LatLngBounds.Builder builder = new LatLngBounds.Builder(); The…
LizG
  • 2,246
  • 1
  • 23
  • 38
7
votes
2 answers

Draw Routes between multiple points on map

I am new to android. I want to draw routes between multiple markers. I a, getting latitude, longitude and datetime from server. Now i want to show route between the points. I have stored them in arraylist. Here is how i am getting the points in…
user5333329
1
2 3
30 31