为什么“natural_feature”从Google地图地理编码和Places API搜索中排除? [英] Why is "natural_feature" excluded from Google Maps Geocoding and Places API searches?
问题描述
去做吧!如果您从Google获得地理编码API密钥,则可以从服务器请求中获取包含在JSON / XML响应中的自然功能的所有数据,如下所示(我试图获取Gamsey Wood的数据):
快乐的日子!
Trying to mimic the 'what's here' feature of Google Maps in my own website but it seems that items of type 'natural_feature' are excluded from Google Maps 3 API geocoding and places searches, both nearby and radar, and also on text searches unless the EXACT name of the place is provided. This must have been an informed choice by Google to do this - anyone know the rationale, and better, offer a workaround? Seems crazy that I can't get the names of woods, nature reserves etc. any more...
Found out how to do it! If you get a geocoding API key from Google you can get all the data for natural features included in the JSON/XML response from a server request like the following (I was trying to get the data for "Gamsey Wood"):
Happy days!
这篇关于为什么“natural_feature”从Google地图地理编码和Places API搜索中排除?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!