Get list of nearby places from Google Places API (Swift 3)

前端 未结 3 1708
闹比i
闹比i 2021-01-05 14:02

I am aware that there are similar threats already, however, the exact topic I am looking for seems to not have been touched.

I am a programming newby, howev

3条回答
  •  臣服心动
    2021-01-05 14:55

    Here is an example url, where it returns a list of starbucks near your location.

    https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=(yourlatitude),(yourlongitude)&radius=5000&keyword=starbucks&key=(yourkey)

    You can get the key from google console

提交回复
热议问题