我无法让 google 的地理编码 api 识别该地址:
斯奎尔 12 号酒店
机场
60549 美因河畔法兰克福
Germany
Squaire 是法兰克福机场的一座建筑。它似乎没有正常的街道地址,但 The Squaire 的许多企业都有类似“The Squaire NUMBER”的地址。例如:
- ALEX: The Squaire 17, 60549 美因河畔法兰克福, 德国 https://www.google.com/maps/place/ALEX+Frankfurt+The+Squaire/@50.0526911,8.5683829,78m/data=!3m1!1e3!4m5!3m4!1s0x0:0x3cc441ae39321b67!8m2!3d50.052795!4d8.568673
- 比尔芬格设施服务有限公司:THE SQUAIRE 13, Am Flughafen, 60549 美因河畔法兰克福, 德国 https://www.google.com/maps/place/Bilfinger+Facility+Services+GmbH/@50.0532033,8.5709144,84m/data=!3m1!1e3!4m5!3m4!1s0x0:0xe263ab1350db84a2!8m2!3d50.0531461!4d8.57108
但无论我做什么,我都无法获得像 google geocode api 所识别的地址:
- The Squaire 12, Am Flughafen, 60549 美因河畔法兰克福, 德国 https://maps.googleapis.com/maps/api/geocode/json?address=The%20Squaire%2012,%20Am%20Flughafen,%2060549%20Frankfurt%20am%20Main,%20Germany
- The Squaire 12, 60549 美因河畔法兰克福, 德国 https://maps.googleapis.com/maps/api/geocode/json?address=The%20Squaire%2012,%2060549%20Frankfurt%20am%20Main,%20Germany
- 还有很多其他变化
令人抓狂的是,当我在机场附近搜索“squaire”时,places API 找到了我正在寻找的地方:
匹配结果有:place_id: ChIJY9ZMLL4KvUcRxZhQ3e-7ask
。当我查询详细信息端点时:
I get formatted_address: "THE Squaire 12, Am Flughafen, 60549 Frankfurt am Main, Germany"
,但这正是在地理编码 api 中不起作用的地址。
当我使用带有 place_id 的反向地理编码 api 时:
I get formatted_address: "plug and work Frankfurt, THE SQUAIRE Conference Center, THE Squaire 12, Am Flughafen, 60549 Frankfurt am Main, Germany"
。这在正向地理编码 api 中仍然不起作用:
https://maps.googleapis.com/maps/api/geocode/json?address=plug%20and%20work%20法兰克福,%20THE%20SQUAIRE%20Conference%20Center,%20THE%20Squaire%2012,%20Am%20Flughafen,% 2060549%20法兰克福%20am%20主要,%20德国 https://maps.googleapis.com/maps/api/geocode/json?address=plug%20and%20work%20Frankfurt,%20THE%20SQUAIRE%20Conference%20Center,%20THE%20Squaire%2012,%20Am%20Flughafen,%2060549%20Frankfurt%20am%20Main,%20Germany