ios - show near by restaurants in Map View using user current location in map kit -
in iphone app,i have show near restaurants in map view.
but how can show nearby restaurants in 5000 meters of current location native mkmap view(i found out current location-lat&long)
i learn how implement in below screen shot(by clicking annotations going detail too)
you can use foursquare api 1 possibility. https://developer.foursquare.com/
fetch venues api
var venues: array = fetchvenues()
make annotation
var venueannotation = mkpointannotation() venueannotation.coordinate = cllocationcoordinate2dmake(venue.latitude!, venue.longitude!) venueannotation.title = venue.name venueannotation.subtitle = venue.address
add annotation mapview
self?.mapview.addannotation(venueannotation)
this site might helpful you.
ios development: near me places- (foursquare api) http://prashantpatil26.blogspot.jp/2014/06/near-me-places-foursquare-api.html
Comments
Post a Comment