gpt4 book ai didi

java - 免费定位服务 - 按名称街道

转载 作者:行者123 更新时间:2023-12-02 07:46:50 24 4
gpt4 key购买 nike

有人知道有什么免费的定位服务可以让我根据以色列的城市找到街道吗?我可以使用任何 java、.NET 或 javascript api。

最佳答案

OSM Nominatim如果您想搜索城市内的街道,这可能是您的最佳选择。

nominatim.openstreetmap.org 服务器有一定的限制 usage policy ; MapQuest also provides the Nominatim service没有使用限制。

如果您计划进行大量查询,那么最好使用 installing Nominatim on your own servers ,但请注意,这不是一项简单的任务,而且数据集的大小已接近 TB。

如果您正在寻找街道列表there's a few options 。最简单的是使用mapsomatic生成 CSV,但这是手动的,仅在您需要一两个城市时才有效。

It's more complicated if you need more than one city:

  1. download osmosis (and perhaps osmembrane which is a beta GUI for osmosis)
  2. download your country extract netherlands.osm.pbf (~430MB)
  3. create a polygon file parseable by osmois (see osm2polygon)
  4. run osmosis with the polygon and extract all ways that have the tags name=* and highway=residential
    1. way-key name,highway
    2. tag filter reject-node, reject-relation

关于java - 免费定位服务 - 按名称街道,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10713303/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com