问题标签 [nominatim]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
446 浏览

openstreetmap - Nominatim 中的 place_id 是唯一的列吗?

反向查找响应中的 place_id 列是唯一列吗?

[长篇大论...] 我需要知道的原因是,我犯了一个巨大的错误,我对 4000 万条记录进行了反向地理编码,但忘记在保存的结果中包含 osm_type。

这是一个问题,因为我正在使用反向地理编码的结果更新一个 SQL 表,但是因为有多个 osmId(它在元素类型中唯一的)并且因为我不知道更新行的元素类型,我遇到了一个大问题!

所以现在我需要一种方法来找出匹配这些行的方法。

我保存了place_id,所以这可能是我的救星?(如果它是一个独特的列?)

否则,如果不是,是否有任何其他方法可以隐式推断提名响应是什么元素类型?例如来自另一列的存在?

这是一个反向地理编码结果示例:

这是我的 Sql 中的一个示例行(两行具有相同的 osmId 但不同的 OsmElementType)

0 投票
1 回答
147 浏览

javascript - 使用 q 参数时提名不匹配

我有以下问题。我想使用 Nominatim 从文本框值中查找坐标我还添加了一个带有国家/地区的选择列表以便更容易找到。但问题是:我何时使用 q 参数:

这给了我一些其他的柏林人,例如在美国。但是当我使用 q 的 city 参数时,它的工作正常。

但问题是我不能始终使用城市参数,因为可能有一个城镇安装了城市。

0 投票
2 回答
359 浏览

nominatim - Nominatim 搜索 API 中的 dedupe 参数有什么作用?

它似乎不仅仅是删除重复项,但我找不到任何好的文档。API 文档目前只是说:

重复数据删除=[0|1]

    还没有解释。

我正在运行我自己的 Nominatim,它是几个月前从原版分叉出来的,当我的没有回应时,我使用公共的 Nominatim 作为备份。因此,我对有关最新公开 Nominatim 的答案很感兴趣。在我自己的 Nominatim 上,我没有注意到结果中有重复。

dedupe设置为0或时我注意到了差异1这是一个差异,您可以在其中看到即使使用dedupe=0,也没有重复使用dedupe=1,结果是不同的。顺便说一句dedupe=1,似乎没有dedupe设置匹配默认值。

也许 Nominatim 正在删除基于 GPS 和边界的重复项,而不仅仅是place_id's?

0 投票
1 回答
3624 浏览

openstreetmap - Getting Streets of a specific postcode using Open Street Maps

I want to write a code that has the Countrycode and Postcode as an input and the ouput are the streets that are in the given postcode using some apis that use GSM.

My tactic is as follows:

  1. I need to get the relation Id of the district. For Example 1991416 is the relation id for the third district in Vienna - Austria. It's provided by the nominatim api: http://nominatim.openstreetmap.org/details.php?place_id=158947085

  2. Put the id in this api url: http://polygons.openstreetmap.fr/get_wkt.py?id=1991416&params=0

  3. After downloading the polygon I can put the gathered polygon in this query on the overpass api

    ( way (poly: "polygone data") ["highway"~"^(primary|secondary|tertiary|residential)$"] ["name"];

    ); out geom;

And this gives me the streets of the searched district. My two problems with this solution are 1. that it takes quite a time, because asking three different APIs per request isn't that easy on ressources and 2. I don't know how to gather the relation Id from step one automatically. When I enter a Nominatim query like http:// nominatim.openstreetmap.org/search?format=json&country=austria&postalcode=1030 I just get various point in the district, but not the relation id of the searched district in order to get the desired polygone.

So my questions are if someone can tell my how I can get the relation_Id in order to do the mentioned workflow or if there is another, maybe better way to work this issue out.

Thank you for your help!

Best Regards Daniel

0 投票
2 回答
956 浏览

dictionary - 基于加拿大邮政编码的 Nominatim Openstreet 地图搜索

我已经在我的 ubuntu 12.0.4 操作系统中安装了 Nominatim。我已经从http://download.geofabrik.de/north-america/canada.html url下载了北美-加拿大 osm 地图数据并安装在 postgresql 中。

现在的问题是,我在我的 nominatim 网站上搜索了 3485 个邮政编码,但只找到了 72 个邮政编码。

我想知道为什么 nominatim 邮政编码搜索不起作用?或任何其他 osm 数据需要安装以进行邮政编码搜索?

或者如何根据邮政编码搜索 nominatim?

任何与基于加拿大邮政编码的搜索相关的建议对我都有帮助。

0 投票
1 回答
141 浏览

ubuntu-12.04 - OSM地名翻译

我在 OSM 做一个项目。我的目的是将地名翻译成任何其他当地语言。除了可以更快实施的 Nomino 之外,是否有任何工具可以帮助实现此目的?

Does JOSM supports translation of the place names in OSM??

0 投票
1 回答
1398 浏览

openstreetmap - Nominatim 从哪里获得地址信息?

到目前为止,我一直在使用 Nominatim API 来获取地标信息,但最近,我下载了 OpenStreetMaps 数据库,并尝试制作自己的数据集,因此我不会如此依赖 Nominatim 服务。我设法从 OSM 数据库中提取了所需的信息(例如标记有便利设施的节点),但我意识到,当我通过 Nominatim 查询便利设施时,它返回了一堆地址信息,在OSM 数据库。

例子:

使用 Nominatim 对西班牙酒店进行反向地理编码: http://nominatim.openstreetmap.org/reverse?format=xml&osm_type=N&osm_id= 1207098527

附加到用于在 OSM 中反向地理编码的同一节点的数据:http: //open.mapquestapi.com/xapi/api/0.6/node/1207098527

虽然 Nominatim 给了我郊区、行人、城市、县、州等信息,但 OSM 中的这个节点只包含一个名称标签和一个旅游标签。

有谁知道,Nominatim 从哪里获得用于显示其信息的附加数据?

0 投票
1 回答
1147 浏览

openstreetmap - 具有速度限制的本地 nominatim openstreemap

我目前正在 PostGIS 上运行 openstreetmap 的 nominatim 地图的本地副本。

有没有办法可以将速度限制输入这个数据库,这样我也可以返回该信息。我发现查询openstreetmap时可以使用此数据,但需要在本地返回

(我正在运行我们自己的本地副本,所以我不会超过每日限制)

谢谢约翰

0 投票
1 回答
641 浏览

openstreetmap - Openstreetmap Nominatim 没有给出 nginx 的输出

试图运行 Nominatim 似乎是不可能的。我遵循了Nominatim 安装的说明,在尝试访问 url http://nominatim.mytest.com/之后, nginx 说:

没有一点输出。如果我从控制台 php5 index.php 运行,那里有一个 html 输出。

nginx 的配置是(/etc/nginx/sites-enabled/nominatim.mytest.com):

主机文件:

机器是:

0 投票
3 回答
1773 浏览

postgresql - 导入 OpenStreetMaps 数据失败

我在地理编码项目中工作,我想导入 OpenStreetMaps 数据。我创建了一个数据库并命名它nominatim,我尝试了这个命令:

它向我显示了这条消息:

删除数据库后nominatim,它显示以下错误消息:

顺便说一句:我安装了所有软件包的 postgres。