免费的位置服务 - 街道名称 [英] free location service - street by name
问题描述
nominatim.openstreetmap.org 服务器有一些限制性的使用政策; MapQuest还提供Nominatim服务,不含使用限制。
如果您计划的查询量非常大,您最好从安装Nominatim在你自己的服务器上,但要警告的是这是一个简单的任务,而数据集的大小接近1兆字节。
b$ b
如果您正在寻找街道的列表,有几个选项。最简单的方法是使用 mapsomatic 生成CSV文件,但这是手动的,只适用于需要一两个城市的情况。
ol>
下载osmosis(也许osmembrane是一个用于
渗透的beta GUI)
下载您的国家提取netherlands.osm.pbf(〜430MB )
创建一个可由osmois解析的多边形文件(请参阅osm2polygon)
使用多边形运行
渗透并提取所有具有标签
name = *和highway =住宅
- 道路钥匙名称,公路
- 标记过滤器
拒绝-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:
- download osmosis (and perhaps osmembrane which is a beta GUI for osmosis)
- download your country extract netherlands.osm.pbf (~430MB)
- create a polygon file parseable by osmois (see osm2polygon)
- run osmosis with the polygon and extract all ways that have the tags name=* and highway=residential
- way-key name,highway
- tag filter reject-node, reject-relation
这篇关于免费的位置服务 - 街道名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!