You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that providing the saddr param isn't working on latest google maps. I just left it out and then navigation from my current location worked fine.
I had the same problem but I found that the issue was the format of the daddr param. I removed the destination map point's name and it worked fine. I don't think the latest Google Maps supports the name of the destination in the format that it is currently being created in googleMapsStringForMapPoint: mapPoint.
My quick fix was just this (Google Maps guessed the location name based on the lat/long, so that won't always be perfect, in my case it was fine):
It seems that providing the saddr param isn't working on latest google maps. I just left it out and then navigation from my current location worked fine.
https://developers.google.com/maps/documentation/ios/urlscheme
For example:
NSString *dAddrVal = [NSString stringWithFormat:@"%f,%f", end.coordinate.latitude, end.coordinate.longitude];
NSString *url = [NSString stringWithFormat:@"comgooglemaps://?daddr=%@&directionsmode=driving",
dAddrVal
];
The text was updated successfully, but these errors were encountered: