Questions tagged [directions]

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

References

455 questions
4
votes
2 answers

Open Google maps app with directions by coordinates

I'm coding an app (both iOS and Android) that should be able to open the Google Maps app on the device and give directions to a target. The target is provided as latitude/longitude coordinates. I have read the official guid how to do this…
archer
  • 73
  • 1
  • 1
  • 8
4
votes
1 answer

Google map API route from current location to marker

Working with the Google map API and routes or directions. I would like it such that when a user clicks a marker the route from the user's current location to that marker would render. I have been studying the Google maps API documentation direction…
Shane G
  • 3,129
  • 10
  • 43
  • 85
4
votes
1 answer

MKDirections / calculateDirectionsWithCompletionHandler not working anymore in Swift 2.0

I have another problem now with MapKit / MKDirections. After I got everything working fine, Swift 2.0 came out and the 'calculateDirectionsWithCompletionHandler' method that looks like…
unixb0y
  • 979
  • 1
  • 10
  • 39
4
votes
1 answer

Google directions route optimization

Google as an API to calculate the route between some origin and destination and there's an additional parameter called waypoints (middle route stops) and you can specify you want the route to be optimized, so the final directions will be an…
andrepcg
  • 1,301
  • 7
  • 26
  • 45
4
votes
1 answer

iOS MapKit connect multiple points on map over roads

I'm using this code to connect pins(points on map) with polyline: CLLocationCoordinate2D coordinates[allLocations.count]; int i = 0; for (locHolder *location in allLocations) { coordinates[i] =…
user2570174
  • 601
  • 1
  • 6
  • 9
4
votes
2 answers

Google Map v2 Get Direction Android

Can i get direction between 2 points with using Google Maps v2 in my Android application ? I found Polyline but i don't want to draw a line between 2 points. I found a solution which is using Intent. It can solve this problem but it is not useful…
Emre Koç
  • 1,343
  • 1
  • 25
  • 44
4
votes
4 answers

How to decode Polylines from Google Maps Direction API in PHP

I have json response from the following URL: http://maps.googleapis.com/maps/api/directions/json?origin=Chicago,IL&destination=Los%20Angeles,CA&sensor=false JSON path…
Shehzad Bilal
  • 2,535
  • 2
  • 18
  • 27
4
votes
2 answers

Google Maps directions as a map on iPhone

I'm working on an iPhone app that needs to display walking directions from a point, A, to another point, B, in a UIWebView that loads a Google Maps URL with the relevant parameters. Example of the URL i am loading: [self.myWebView…
steak2002
  • 177
  • 2
  • 11
4
votes
1 answer

Identifier in Google Maps API directions

I have a question that I can't seem to find the solution to. I'm no stranger to the Google Maps API and have coded maps and driving direction pages with it in the past. The issue I'm always running into is not having the place name returned in the…
3
votes
2 answers

"Unhandled Exception: NoSuchMethodError: The getter 'iterator' was called on null." is thrown when I use google_maps_polyline plugin in flutter

Since I've been working with google polyline plugin my app throws this exception, I try changing the versions but It stills not working, can someone help me with this, here is the complete exception: [ERROR:flutter/lib/ui/ui_dart_state.cc(157)]…
3
votes
0 answers

Waze Deep Link with multiple locations?

I'm currently making a web app and I want to "share" some addresses to Waze Deep Link to have a turn by turn navigation. I have tried to use different urls like this but nothing works.…
Jalil
  • 1,167
  • 11
  • 34
3
votes
3 answers

Access to google maps api directions markers

I need to add listeners for directions markers, but haven't any access. How can I get access to direction markers like simple markers? Sorry for my terrible English, I hope you can understand me. UPD: I create a new route: var request = { …
Ardentum
  • 137
  • 1
  • 2
  • 10
3
votes
1 answer

OpenRouteService Directions api usage

So I'm trying to use the open route service directions API https://openrouteservice.org/dev/#/api-docs/directions/get but so far I cannot find any tutorial on how to use it. Im sorry for the beginers questions.. This is the code that I'm trying to…
3
votes
1 answer

change latlng in google map directions api

i working with google map directions api in android application.when i send two Location to google api it return route between both but LatLng is changing and no one send me.Is there a way to do this?
handerianous
  • 179
  • 9
3
votes
1 answer

Google Maps Embed API for directions - zoom to fit origin and destination

The Google Maps Embed API for directions doesn't always show the origin and destination in the frame. Sometimes the default zoom level is zoomed-in too much.