[英]How to get the geocode(coordinates) and population (count of civils) of the city with the Google places API? Which requests I should use?
我正在 java spring-boot 開發一個學習項目。 我只用過地方 API(我有鑰匙)。 我不想在另一個 Google API 注冊,我怕計費))
例如,以下請求:
https://maps.googleapis.com/maps/api/geocode/json?address=Moscow&key=APP_KEY
完成代碼 200 OK 和 JSON 響應
{
"error_message": "This API project is not authorized to use this API.",
"results": [],
"status": "REQUEST_DENIED"
}
我通過獲取地理編碼解決了這個問題。 我剛剛啟用了地理編碼 API,而我來自 Places Api 的密鑰可用於地理編碼 API。
現在只問如何通過 Google API 獲取人口。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.