I am able to place annotations on my MKMapView
by using latitude and longitude, however, my feed coming in that I need to use location for is using street addresses instead of Lat and Long. e.g 1234 west 1234 east, San Francisco, CA ...
Would this have something to do with the CLLocationManager
?
Has anyone attempted this before?
Refactored Swift version:
Here's another version ...
- Swift 2017 syntax
- Shows a placename for the point, down the bottom
- Choose any size, say 5 km, as the area shown
That is not possible. But you can obtain the long/lat from an Address by using the
CLGeocoder
class.Since iOS 7, placemark.region.center is deprecated. Now needs to use:
You can also read Apple Documentation about this and here too.
Swift version
Based on psoft's excellent information, I was able to achieve what I was looking for with this code.