Using Google Maps Direction API into iOS app - ios

Basically i want to show Google map with direction overlay on top of it from one place to other and Direction instructions into UITableView (eg. 30Miles move left , 20 miles turn Right etc.)
Is it acceptable by Apple? I can get directions using
https://developers.google.com/maps/documentation/directions/
Main requirement is show directions instructions for example Driving, Walking instructions into UITableView.
But not sure Apple will approve it .
IF not what other option we have to do so.
Any help would be highly appreciated.

Yes , the Google Direction APIs are acceptable by Apple . I have used the direction in my projects out of which some of the Apps have been submitted to AppStore .

#Gaurav Rastogi,
find this message, I'm very happy, do you know this,
according to the Google Terms & Conditions you're not allowed to use their directions/data on someone else's maps." copy somewhere.
Is it legal?

Related

Shorten Apple Maps Location Share Link in iOS

I have a direct chat messaging app where when a user pastes and submits a share link via apple maps of a specific location, it displays as a long ugly link. The redirect and it being clickable is all good and okay, but optically, it'd be nice to abbreviate it like iMessage does for apple maps links to maps.apple.com.
Is there any way to detect and convert the link into one that is easier to consume? I could not find any references or threads to even begin experimenting with solutions, so any thoughts would be greatly appreciated.
You can use Apple's CLGeocoder to convert coordinates and create a "link preview" feature inside your app. Here are some useful links:
https://developer.apple.com/documentation/corelocation/clgeocoder
https://developer.apple.com/library/archive/technotes/tn2444/_index.html

Is it possible to get turn by turn directions using Google Maps Api in iOS?

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...

Offline Google Maps in iOS

I am looking for Offline Google Maps in iOS (Objective c).
Is there any way to download the Map into the App when user is connected to internet, and show the downloaded map when user is offline and using the App ?
Any help will be highly appreciated.
I don't know much about it but I have heard some once talking about the same thing and using openstreetmaps instead of Google Maps.
OpenStreetMaps: http://www.openstreetmap.org/
As far as I know Google Maps doesn't implement that feature on its iOS Framework yet. But there are other Frameworks, such as Skobbler or Nutiteq that provide what you need.
It is quite easy to use Google maps as the offline mode you just need to download the map for the particular location you need to visit offline, later you can access that map anytime. I recommend you to see complete tutorial with screenshots here.
Follow some below steps:
1: Open google maps.
2: Navigate to the menu, and select offline area.
3: Select the area you want to use as area as an offline map.
4: Now tap download.
You can access this map in future for one month after which it will ask for updates.

How to utilise apple's "suggested App" function

I've developed an app for my Organisation, and I would like it to come up as a "suggested App" when people enter my organisations building, similar to the Starbucks app demonstrated an WWDC.
Could someone point me in the right direction to locate any development notes on implementing this feature, and setting up the required hardware?
I've gone through and watched the WWDC videos on Location notifications and Taking Core Locations indoors, but still am a bit unsure as to using this information to make my app appear as a suggested app.
Thanks in advance.
I watched the same WWDC sessions as you and read the documentation and I haven't found a clear answer. You have already an organisation and you should try to sign up for indoor positioning and see what you can to with that.
https://mapsconnect.apple.com
Maybe if you sign up to that program, then you are able to add you app to the suggested apps function. This is only my idea, not 100% confirmed right now.

iOS driving directions in iOS6

I have been searching all around about how to integrate driving directions into MKMapView within my application. Is the only way to open the Apple Maps program and go from there, or is their a way of integrating within your own app. If not, I will probably go with google maps as soon as I can get an API key.
If you mean getting the same views for driving direction (a.k.a. turn-by-turn navigation) as the Apple Maps application, then no... as far as I know, there is no library for that (if not 3rd party).
However, as you mentioned, you can open apple maps or google maps giving the directions to the application and initiate such a function.
Also, good to know: If there would be such a build-in functionality in iOS6 (which, again I don't believe there is) its good to know it doesn't exist in pre-iOS6. Meaning it won't work on earlier devices. (hence you need to build a fall-back solution if you want to support those devices as well).
More information on iOS turn-by-turn: http://developer.apple.com/library/ios/#releasenotes/General/WhatsNewIniPhoneOS/Articles/iOS6.html
Quote from that page (which makes me believe turn-by-turn is not supported in the API's):
... Apps that offer routing information, such as turn-by-turn navigation services, can now register as a routing app and make those services available to the entire system.
The documentation search page doesn't give much more info either: http://developer.apple.com/library/ios/search/?q=turn-by-turn
For more information on how to open the maps app, check the answer here: https://stackoverflow.com/a/12789896/406677
So bottom line, you need to either create your own turn-by-turn navigation... or link to an existing application giving such support.
I hope that answered your question.

Resources