Questions tagged [directions]

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

References

455 questions
6
votes
2 answers

Avoid coordinates when generating a route using Mapbox Direction API

I have been using Mapbox for my app to generate route and turn-by-turn navigation and it's working well. However I would like to avoid to go through some coordinates of the route but I can't figure it out. The code to get the route…
113408
  • 3,364
  • 6
  • 27
  • 54
6
votes
2 answers

Google Maps Utils how to decode polylines values from list?

I'm using Google Maps Directions Api and the Google Maps Utils library to draw a path between my location to a marker, I was retrieving the field overview-polyline from the Directions Api, but the polyline that was drawn was not right so now I'm…
alb
  • 347
  • 2
  • 7
  • 24
6
votes
1 answer

MKDirections many requests stop working

I need to draw a path starting with a list of coordinates (P1, P2, ... Pn). For each next couple Pi, Pj of my list I call the method calculateDirectionsWithCompletionHandler of the class MKDirections until the Pn-1 element. The first time I call it…
cicaletto79
  • 179
  • 1
  • 12
6
votes
2 answers

Adding InfoWindow on Google directions route

I am trying to add an InfoWindow to directions route. there are lots of examples out there for adding InfoWindow on an event listener on a marker. But how can I move the InfoWindow to show on the actual planned route from one marker to another.…
5
votes
1 answer

Demo for Displaying Multiple Google Directions (Google Maps API v3)

Hey all, is there a functioning demo out there for displaying multiple directions routes on a single Google map? The other question on stack links to a set of snippets…I feel like I'd be able to work better I just saw a functional script in…
joshdcomp
  • 1,618
  • 3
  • 19
  • 26
5
votes
2 answers

How do I use Google Maps Directions API on Android?

I checked out the Google Maps API directions documentation but it just says a lot of things, can anyone show me a code on how to use the Directions API on Android? I just want Point A to have a line direction going to Point B.
Jhay Cruz
  • 51
  • 4
5
votes
1 answer

Automatically detect all map navigation applications installed

In iOS apple maps application, when selecting a destination, apple maps gives you options to use any of the installed mapping apps to get turn by turn directions. How does apple maps do this? is there a way to implement similar feature in my own…
plawres
  • 313
  • 4
  • 19
5
votes
4 answers

Android, how to pass lat long route info to Google Maps App

I have an Android app which shows a number of locations on a Map. When I click on a location I would like to pass the lat long of the location, and the lat long of the device's location, to the Google Maps App so that it can show me route…
MHugh
  • 455
  • 1
  • 7
  • 20
5
votes
4 answers

Swift iOS google Map, path to coordinate

I am trying to create a function in my app that will guide the user to a marker I have created. This is the code I am using, it works great, It gets the users current location and show it on the map. But how can I get a directions to a marker? Any…
Dolleno
  • 63
  • 1
  • 1
  • 3
5
votes
1 answer

swift get directions in maps app

I have an app that displays multiple locations in multiple mapviews. How can I add a button that allows the user to open one of these locations in their maps app and to get directions to it?
Vincent
  • 1,645
  • 3
  • 14
  • 22
5
votes
8 answers

iOS - Launch YandexMaps with directions URLScheme

Is there an URL-Scheme for launch the Yandex Maps application with directions? I can just launch the Yandex Maps application (if already installed) with few lines of code, but I didn't found documentation about URLSchemes handled by the app: NSURL…
Fabio Caccamo
  • 1,871
  • 19
  • 21
5
votes
1 answer

Google API (directions) - creating routes that avoid certain points

Google Maps API does not seem to provide a means to create routes that avoid or tend to avoid certain points. Has anyone worked on something like this? I want to create exception rules on routes. For example: show routes that do not have traffic…
Thiago Viana
  • 1
  • 1
  • 1
  • 4
4
votes
1 answer

Redirecting from mobile website to googlemaps

Basically what I want to do is, redirect the user from a mobile website to Google Maps on their phone and from there it will show the user the directions from their GPS location to my location. What type of languages would be needed? and How…
Legomyego
  • 41
  • 2
4
votes
1 answer

IPhone : google maps directions

i'm developing an iPhone app which embed a mapView made with mkmapkit. I got two coordinates and I'm tracing the direction between these two points. Everything works well. I'm using google maps api : maps.googleapis.com/maps/api/directions to…
Bejil
  • 412
  • 5
  • 18
4
votes
1 answer

Google maps API: ignore seasonal restrictions in DirectionService request

I am currently developing a map where the shortest route between two points is shown (using different transports). I have noticed that sometimes, roads that are for example closed in the winter, are not taken into consideration. I have found that I…
Michiel Standaert
  • 4,096
  • 7
  • 27
  • 49
1
2
3
30 31