免费的位置服务 - 街道名称 [英] free location service - street by name

查看:93
本文介绍了免费的位置服务 - 街道名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道任何免费的位置服务,这将使我能够根据以色列的城市找到街道?我可以使用任何Java,.NET或javascript api。 OSM Nominatim 可能是您最好的选择,如果您希望在城市中搜索。



nominatim.openstreetmap.org 服务器有一些限制性的使用政策; MapQuest还提供Nominatim服务,不含使用限制。



如果您计划的查询量非常大,您最好从安装Nominatim在你自己的服务器上,但要警告的是这是一个简单的任务,而数据集的大小接近1兆字节。

b
$ b

如果您正在寻找街道的列表有几个选项。最简单的方法是使用 mapsomatic 生成CSV文件,但这是手动的,只适用于需要一两个城市的情况。






ol>
  • 下载osmosis(也许osmembrane是一个用于
    渗透的beta GUI)
  • 下载您的国家提取netherlands.osm.pbf(〜430MB )

  • 创建一个可由osmois解析的多边形文件(请参阅osm2polygon)
  • 使用多边形运行
    渗透并提取所有具有标签
    name = *和highway =住宅


    1. 道路钥匙名称,公路
    2. 标记过滤器
      拒绝-node,reject-relation




  • Does anyone knows any free location services that will allow me to find streets according to cities in Israel? I can use any java, .NET or javascript api.

    OSM Nominatim is probably your best bet if you want to search for a street within a city.

    The nominatim.openstreetmap.org servers have a somewhat restrictive usage policy; MapQuest also provides the Nominatim service without usage limits.

    If you're planning on a very high volume of queries, you'll be better off installing Nominatim on your own servers, but be warned that this is not a trivial task, and the dataset is approaching a terabyte in size.

    If you're looking for a list of streets, there's a few options. The easiest is to use mapsomatic to generate a CSV, but this is manual and only works if you need one or two cities.

    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

    这篇关于免费的位置服务 - 街道名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆