MapKit with UISearchBar - ios

So if I understand correctly you can no longer use certain Google APIs with iOS (ex. Google Places). So how can we use the iOS MapKit with a UISearchBar to search for locations? The map on my iPhone has a searchbar so if I, for example, type coffeshops I get all the pins in my area of local coffesshops. If Apple is not using Google APIs what are they using to find this data? How can we developers tap into this search data?
Thanks,

MapKit contains a search request to replace the outgoing Google APIs.
https://developer.apple.com/library/ios/#documentation/MapKit/Reference/MKLocalSearchRequest_class/Reference/Reference.html#//apple_ref/doc/uid/TP40012892

I have a small app with this feature.
Github: https://github.com/galahador/MapTag
UISearchBar - when you input data in bar, it shows on a map with a pointer (pin)
If you need any help, I can show code and explain everything.

Related

How to implement clickable info-bubble on tap of marker in HERE maps in iOS?

I have integrated HERE maps successfully in my iOS app, but now I am facing an issue in implementing info-bubble on tap of markers on HERE map.I have searched on HERE documentation for iOS SDK, but can't find anything relevant. There are many solutions for JS, but nothing for iOS.
This feature doesn't seem to exist on iOS and Android. In order to create a similar behaviour in iOS, you should use NMAMapOverlay instead and add your own subviews/styling to it.
The iOS SDK documentation states that NMAMapOverlay can be used to display custom UIView-based content at a fixed location on the map. (...) Then, give the overlay a NMAGeoCoordinates location and add it to a map. The overlay will automatically be repositioned on the screen as the map moves.
You can find more information about the best practices for the implementation here:
https://developer.here.com/documentation/ios-premium/3.15/api_reference_jazzy/Classes/NMAMapOverlay.html

Turn-By-Turn navigation using Google Map SDK and Swift in iOS app

There is an app, that should provide turn by turn navigation. At the moment it uses Google Map SDK and I was able to draw a route using Google Directions API and GMSPath using tutorial from AppCoda. Problem is it looks kind of ugly - simply thin blue line.
My questions is it possible create turn by turn navigation inside an app using Google Maps?
I think Google does provide this option but not for free.
Have a look at this:
https://cloud.google.com/maps-platform/ridesharing/

Open Google Maps view inside iOS App

So basically I want to add navigation to my app, but I don't want to launch the Google Maps app for iOS and then return the user to my app, but I want to open up the navigation inside a ViewController, much like you can do with regular maps using MapViews for Google Maps.
Is this possible? I can only find resources on how to launch the Google Mapps app for iOS outside your own app, and it's not exactly the best sentence to search for either.
Just thought of a possible solution: Open the Google Maps Navigation from the Web in WebView...should work, right?
You could do that, if you really need to use Google Maps; however, this will probably look bad. A MKMapView is much easier to use, but it uses Apple's maps. If you want to use it, take a look at the CoreLocation and MapKit frameworks.
If you want to use Google Maps in your app, just implement Google Maps iOS SDK.
https://developers.google.com/maps/documentation/ios/start

Can I animate my mapView like with SatNav

I'm using MapKit to load a MKMapView and loading KML files to display a route with polylines between the designated points. I've seen a similar Android app using Google Maps that animates the route and runs it from start to finish.
I've been through the MapKit Framework documentation and I can't find anything that suggests I can do the same thing using Apple Maps.
If I'm wrong and it is possible I would be grateful for any information
The only way to resolve this issue is import the Google maps framework, which works perfectly well alongside MKMapkit.
There is a facility within Google Maps that enables the developer to animate their route.

How to set padding on map view (Mapbox-ios-sdk)

Does anybody knows how to set the padding on a MapBox mapView as Google Maps iOS SDK does?.
This example belongs to google maps iOS sdk 1.7.2 (VisibleRegionViewController).
What I want to do is to replicate the overlay view on MapBox SDK for iOS so I can keep the MapBox watermark logo visible when an overlay view is over the mapView.
I contacted MapBox support with the same question in 07/2014 and this was the response:
"Hi, No, there is no documentation for either of these use cases as they are somewhat custom.
We might add this sort of functionality in the future, but it's not there right now."
It looks like they don't provide a Google Maps equivalent of "padding".

Resources