From my iOS app I am invoking iOS maps with directions. Is it possible to also invoke Siri at the same time so voice directions can be given?
Here is the URL that I am currently using to invoke the maps:
http://maps.apple.com/?saddr={start lat},{start long}&daddr={dest lat},{dest long}
Is there something I can pass along in that querystring to have Siri start giving directions when the maps app opens? I can't seem to find anything that says I can (iOS Reference) but my users swear this worked at some point.
Thx.
Siri wont give directions till you are at the start point and the user presses "start".
so this will work:
http://maps.apple.com/?daddr=falkirk&dirflg=d&t=h
As it uses my current location as the start point, and falkirk is drivable to from my location. So setting the start and end point it wont work till you are at the start point.
e.g. this wont work for me as Im not in San Jose :(
http://maps.apple.com/?saddr=San+Jose&daddr=San+Francisco&dirflg=r
Related
Everyone knows that Maps app can detect your home and work location and it shows you with "maps destination" feature. I am just wondering how it gets our specific location like work and home. Is it because we are stable on some places and it figures out we live here and we work there in specific time?
I'm also wondering that how can we get detected datas from the maps. Is it possible that I can use home and work locations on my app, using MapKit?
No you cannot, since it’s confidential users data. Only apples map app can use it
I am looking for a way to get or make turn by turn navigation using Google Maps Api in swift. I've done drawing polylines from source to destination using GoogleMaps Api but still couldn't find a way to do turn by turn navigation. Is it possible?
-Thanks
Yes. It is possible.
Please refer following link which is using turn by turn directions using google API.
https://itunes.apple.com/us/app/biznavi-gets-you-where-you/id597147565?mt=8
(see last two screen shot of iPad from itunes link)
To achieve it, you have to use Google Direction API which allows us to use upto 8 way points.
After that you will get an array of route including all turn by turn message and lat/long.
Just create a CLRegion of 100 meters (or as per your requirement.) around your current location in locationDidUpdate method. If next point of route array falls within CLRegion, just show a message received in routes array by google API.
I have made above application but it was not updated after uploading to store so it is having old UI and it is not having iPhone 5+ support. Sorry for that but you will find feature you require in this app...
I am building an application that must take user's input of a start location, and two destinations and show the route between the three. I have used google maps api in my project to add a map view, but the google directions API is not meant for user input. Should I use the google maps javascript API or add a web view. How would I go about using either?
Google Maps Javascript API: https://developers.google.com/maps/documentation/javascript/directions#Directions
What about the option of having the user launch either google maps or maps with the direction? To do that there's a pretty good answer here: How to Open Google Map Navigation Url with Direction and Voice in iOS?
Multitasking on the phone is pretty good these days so it shouldn't cause too much user annoyance to have another app (built to directions) take over that job. The only reason I'd see to not do it that way is if your app is something like Uber, but if that's the case then there's a few other things you could do.
Hey Guys I was wondering if there is a way to redirect the user back to my iOS app after they've reached their destination on Apple maps or Google maps. Thanks!
This could be possible if the app you open, is yours as well, then you could add some code there that does that. However, if you are talking about google maps / Apple maps, then that is not the case.
As far as I know, there is no api for that... iOS 9 brought the "back to..." button exactly for these situations which gives the user an easier way of switching back to the opening app.
Question, why to open another app if maps is all you need? You can always implement a map in your app and save the switching...
I need to implement a map navigation in an iOS app to guide user from current location to the target destination. I do not want to redirect the user to another app such as Apple Map or Google Map. I need to do this inside my app. MKDirectionsRequest return step by step direction but no voice.
Also mtdirectionsk has done this but I am not sure if it has the voice guide.
As far as I know this is already done in at least one app: Uber Driver