Questions tagged [map-directions]

151 questions
1
vote
0 answers

MKDirections calculateDirectionsWithCompletionHandler is never trigerred

When I make a directions request the Completion Handler is never triggered. The CL / MK Placemarks are properly populated and injected into the MKDirections object. Not sure how to proceed with debugging this. Any help? Below is the method…
J J
  • 134
  • 1
  • 1
  • 11
1
vote
1 answer

Calculate the direction (heading) in Google Maps API V3

From origin to destination, I would like to know the direction of. Simply want to know which direction is in the angle values​​. In the image above, the angle value will be probably between 350-360. (Image source :…
whdals0
  • 175
  • 1
  • 3
  • 21
1
vote
1 answer

Google Directions API error

When I use the following url: http://maps.googleapis.com/maps/api/directions/json?origin=Cais%20do%20Sodre&destination=Gare%20do%20Oriente&sensor=false&mode=transit I'm getting the result { "routes" : [], "status" : "INVALID_REQUEST" } but it…
pedroremedios
  • 763
  • 1
  • 11
  • 39
1
vote
1 answer

google maps API : how to show driving direction?

Is there any simple solution to fix route function var directionDisplay; var directionsService = new google.maps.DirectionsService(); var map; var digiLocation = { "lat" : "51.597336" , "long" : "-0.109035" }; $(document).ready(function() { …
Mo.
  • 26,306
  • 36
  • 159
  • 225
1
vote
4 answers

how to get Route directions between two points on a map to draw driving directions?

is there a way to use core location or google or some other api to provide two points on the map and get the resulting set of latitude/longitude pairs for the route? i have seen in this tutorial Drawing polyines or routes on a MKMapView that how to…
Rahul Vyas
  • 28,260
  • 49
  • 182
  • 256
1
vote
1 answer

Google directions on OpenLayers

I'm a big fan of OpenLayers. The only thing i'm missing here are directions. Since google maps supports directions, I want to integrate these with OpenLayers. Is it possible to use the google maps api to get directions from point A to point B…
filsterjisah
  • 121
  • 7
1
vote
0 answers

iOS 6 Getting Directions in new Apple Map on Foot or Walking

I'm unable get the Walking directions using Apple Map app, But if use MKLaunchOptionsDirectionsModeDriving rather than MKLaunchOptionsDirectionsModeWalking the code works, can someone please help a bit getting on Walking directions? I have following…
Zee
  • 1,865
  • 21
  • 42
1
vote
3 answers

How to show Google Maps Directions in tabs or div that has display:none

When I'm loading a Google Map (v3) with Directions into a div that is hidden from the user, the resulting map is not zoomed and centered correctly. I tried firing a resize event but that did only partially solve the problem. Usually when loading a…
greener
  • 4,989
  • 13
  • 52
  • 93
1
vote
1 answer

to and from path in map

I am creating iPhone application where I want to display where Client is located. I have done that. Now client requested they want directions to show if anyone want to reach at our place. Any link/ code I can get to achieve above? What I want is I…
user1203613
1
vote
1 answer

GMap, gmap3 plugin and 'getRoute' call that changed object received in result

I'm still not sure I'm seeing it right, but here it is: I'm using jquery gmap3 plugin for getting some routing from Google Maps. Plugin is v4.1. Normally, in callback function for getRoute action, I was getting a response (let's have it in var named…
userfuser
  • 1,350
  • 1
  • 18
  • 32
1
vote
1 answer

How to get MKPolylines follow the roads properly in MKMapView (iOS)?

) I'm trying to put a direction polyline on a MKMapView in my iOS project, using Google Directions API. I used the code found in this blog : http://iosguy.com/2012/05/22/tracing-routes-with-mapkit/ , which works quite well. But the problem I find is…
01Human
  • 11
  • 3
1
vote
1 answer

Handling multiple routes with waypoints in Google Maps v3

I want to display multiple directions with dragable waypoints and save each waypoints associating with origin, destination in object or database whenever Route.prototype.setWayPoints() is called. This guy is doing that with single route with…
Ryo
  • 2,003
  • 4
  • 27
  • 42
0
votes
1 answer

Recalculate Google Maps Direction if take the wrong lane

I use the Google Maps Javascript API v3 for calculating the directions from my current position to my end destination in an iPad PhoneGap Application. Now I want to make a function which automatically recalculates the directions, if you take the…
0
votes
1 answer

Remove Directions not working

I'd like a javascript link that will remove the directions from my map. Elsewhere on this forum Remove directions from google map api v3 someone asked a similar question and had a solution - but the solution doesn't work for me. Based on that I've…
webewitch
  • 89
  • 4
  • 10
0
votes
1 answer

Error coming up when trying to implement Google map directions, method definition not found

I have been trying to add a link to Google Maps so that I can show some directions to a location. The only problem i'm having is the code not recognizing the method. Here's samples below, hope they help. .h: #import #import…
Seb
  • 53
  • 10