我正在使用Google Places API来获取有关某些位置的信息,但是在使用经度和纬度查找位置时遇到问题:
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-76.497498,40.107773&radius=1500&keyword=cruise&key=APIKEY
我尝试了这个,但是没有用,有帮助吗?
您需要为查询参数APIKEY
提供有效的&key=
。可以通过Google开发者帐户获得。https://developers.google.com/maps/documentation/javascript/get-api-key