google place API搜索-不起作用

问题描述 投票:0回答:1

我正在使用Google Places API来获取有关某些位置的信息,但是在使用经度和纬度查找位置时遇到问题:

https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-76.497498,40.107773&radius=1500&keyword=cruise&key=APIKEY

我尝试了这个,但是没有用,有帮助吗?

google-maps google-places-api
1个回答
0
投票

您需要为查询参数APIKEY提供有效的&key=。可以通过Google开发者帐户获得。https://developers.google.com/maps/documentation/javascript/get-api-key

© www.soinside.com 2019 - 2024. All rights reserved.