NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hello, i want to get locations(latitude, longitude) of around 1kk addresses. I tried Nominatim in python lib geopy but it will take too much time for processing all addresses. Than i tried osmium with osb.pbf data dumps, but it can`t make search by address, it just iterare over nodes, ways, areas also it take too much time while handling nodes. So my question is there a tool/way to make search by location name like Nominatim in geopy which works with local data dump? I know hard way to do this. It requires importing data dump in local postgress sql database and build and run Nominatim server. Is there easer way?

asked 20 Jan '21, 11:52

maruo95's gravatar image

maruo95
16112
accept rate: 0%

1

Your requirements are not clear. Sometimes you ask about search by name, sometimes you want search by address. These are two completely different things. Which one do you need?

(20 Jan '21, 12:19) scai ♦

No.

The reason for that is that addresses are not stored in OSM ready-to-use. It requires computation to build the address of a place. Also, in case a precise match cannot be found, to find the "nearest" match. Nominatim does these things for you. If you don't use Nominatim then you have to write code that does these things, which will make that way more difficult than using Nominatim. Therefore, there is no easier way.

permanent link

answered 20 Jan '21, 12:02

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×689
×12
×5

question asked: 20 Jan '21, 11:52

question was seen: 1,238 times

last updated: 20 Jan '21, 12:19

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum