How to display a map by mapkit framework in iphone using URL like http://maps.google.com…[it opens map as new App]

StackOverflow https://stackoverflow.com/questions/1665321

  •  13-09-2019
  •  | 
  •  

Question

When we open : http://maps.google.com & type : category:"motel"+California+USA we get the California region map with the motels in that region. This is done by using MapsApp in iphone. But it closes the current application & opens the map as New App.

Now is it possible to do the same thing with mapkit framework? How to use URL in Mapkit like

http://maps.google.com?q=category....

Was it helpful?

Solution

Add an MKMapView to your application. Take a look at "Specifying the Visible Map Region" to center it on California.

As for showing motels, you would have to handle that manually. You could use a service to find the hotels and then add them to your MKMapView as MKAnnotations.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top