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)

enter image description here

you can use foursquare api 1 possibility. https://developer.foursquare.com/

  1. fetch venues api

    var venues: array = fetchvenues() 
  2. make annotation

        var venueannotation = mkpointannotation()     venueannotation.coordinate = cllocationcoordinate2dmake(venue.latitude!, venue.longitude!)     venueannotation.title = venue.name     venueannotation.subtitle = venue.address 
  3. 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

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -