0

Possible Duplicate:
How to search MKMapView with UISearchBar?

okay now I have a MkMapView that show the currentLocation, but I want to make a search bar to make shortcut that will play a animation to target, such as.. I fill the searchBar with the name of some Street example "Independence Street" and mkmapview will make a current location move to the target. how can I do so? any code to make it easier?

Community
  • 1
  • 1
user4951
  • 32,206
  • 53
  • 172
  • 282

1 Answers1

1

you can use this method.

NSString *urlString = [NSString stringWithFormat:@"http://maps.google.com/maps/geo?q=%@&output=csv", searchBar.text];

It gives the latitude and longitude

Tendulkar
  • 5,550
  • 2
  • 27
  • 53