Google 地点 API:tram/cable car/light-rail 支持的类型?
Google Places API: supported types for tram/cable car/light-rail?
我正在迈出使用 Google Places API am currently experimenting with different types 的第一步。我想知道,如果我想搜索 tram/cable car/light-rails 站,我必须使用哪种类型?
我想要的是获取任意坐标定义半径内的地铁、公共汽车和电车站列表。
地铁和公共汽车似乎很方便(types=subway_station
或 types=bus_station
),但似乎没有电车的等价物。
只是为了实验:
搜索慕尼黑的电车站 "Agnes-Bernauer-Platz"(坐标:48.1398418,11.496119,很好的例子,因为附近没有地铁站或公交车站。)如果您交互式浏览 Google 地图,找到了车站("tram icon"),但地方 API 没有找到:
https://maps.googleapis.com/maps/api/place/nearbysearch/xml?location=48.1398418,11.496119&radius=100&key=....
有什么想法吗?
提前致谢!
更新:
types=light_rail_station
好的,似乎 已经是一种尚未在 developers.google.com/places/supported_types 中记录的类型:types=light_rail_station
完成了工作。
我正在迈出使用 Google Places API am currently experimenting with different types 的第一步。我想知道,如果我想搜索 tram/cable car/light-rails 站,我必须使用哪种类型?
我想要的是获取任意坐标定义半径内的地铁、公共汽车和电车站列表。
地铁和公共汽车似乎很方便(types=subway_station
或 types=bus_station
),但似乎没有电车的等价物。
只是为了实验:
搜索慕尼黑的电车站 "Agnes-Bernauer-Platz"(坐标:48.1398418,11.496119,很好的例子,因为附近没有地铁站或公交车站。)如果您交互式浏览 Google 地图,找到了车站("tram icon"),但地方 API 没有找到:
https://maps.googleapis.com/maps/api/place/nearbysearch/xml?location=48.1398418,11.496119&radius=100&key=....
有什么想法吗? 提前致谢!
更新:
types=light_rail_station
好的,似乎 已经是一种尚未在 developers.google.com/places/supported_types 中记录的类型:types=light_rail_station
完成了工作。