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
Related
I'm working on an accessibility app for a client and he needs it to be able to have it on top of other apps. It takes a small area and can be moved easily.
Is there an app permission or config setting to do this?
UPDATE:
An iPad owner sent me a screenshot showing a chat app floating on top of another app.
No, its is not possible because apple does not even give you permission to show you wallpaper too... if it does have given that feature then any app could have a possible access to some some secure data situationally.
e.g: You are using payment gateway in an app now another app start running as an overlay over the existing app which means having a snap shot of the previous app as a background of your current app. Hence privacy breaching. Hence apple will not approve of something like that, hence no feature like that.
Hope this will help you to understand more clearly.
How can we start navigation between two routes when taken from the Google Directions API.
Any ideas where to go from here? How can I manage to integrate the navigation from one route to another in our own App?
I am getting the routes from the google directions API and it is being shown in my App. But how can I start the navigation between them using my current location not using google map app but in our own app?
Well, you're asking a board question which doesn't have code in it indicating what you have done so far, so, assuming you want to know what steps you have to do, here is the answer:
if you have gotten the destination coordinates, longitude & latitude, you can pass them to your instance of the MapKit, and you got the destination.
The starting point, which in this case is the user's location can be asked from the user by accessing it in by adding Privacy - Location Always Usage in your info.plist file.
Then you can start routing between the Two locations.
I highly encourage you to read more on Apple's CLLocation framework which lays the outline of this with extra details.
We have an app that allows users to check-out and ride a certain type of vehicle, and I want to build a button that, when pressed, redirects them to their default navigation app, optionally with a destination pre-selected. Crucially, this vehicle is not allowed on highways, so we do not ever want to direct users to a route with highways in it.
Right now, I am stuck because it looks like I cannot launch Apple Maps with "avoid highways" selected. I am using the URL "http://maps.apple.com/daddr=0,0&dirflg=h", but &dirflg=h did not work for me, neither did &avoid=highways or &avoid=h. Looking at Apple's documentations, it appears that this param just isn't available: https://developer.apple.com/library/content/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html
It looks like for iOS users I would have to redirect them to use Google Maps instead, which I can do according to the Google Maps iOS SDK docs: https://developers.google.com/maps/documentation/ios-sdk/urlscheme. Is that true? Is there really no way to open Apple Maps with 'avoid highways' selected?
Yep—from that documentation it looks like there’s indeed no flag for that setting in the request URL. You may want to file an enhancement request on MapKit for that feature.
I have to retrieve the Apple Maps navigation history. In other words, is there a way of retrieving the recent routes searched by the user of the Apple Maps app? I need recent searches in HomeKit app(in iOS 10).
There is no API available to get information out of the Navigation App. But you can feed some data to Maps to request a route through an Intent / URI.
But I don't think that the Maps app will save the whole route anyway, only the destination. The user selects any saved destination and you can get there from any source.
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...