如果您使用 Open Street Map 中的 Nominatim API,一次处于调试模式,一次没有调试模式,您将获得不同的数据。
示例 URL:
https://nominatim.openstreetmap.org/reverse.php?lat=51.06810&lon=8.79765&zoom=18&format=jsonv2&debug=1
https://nominatim.openstreetmap.org/reverse.php?lat=51.06810&lon=8.79765&zoom=18&format=jsonv2
对我来说尤其重要的是“网站”字段,它存在于调试模式下,但其他情况下则不然。
如何获取所有数据?
使用额外标签来获取此数据:
https://nominatim.openstreetmap.org/reverse.php?lat=51.06810&lon=8.79765&zoom=18&format=jsonv2&extratags=1