Hi there! Very new to using OSM and have read the docs but still am not sure about the use. I am trying to match latitude and longitude coordinates to a road (any kind under the "highway"). But each is taking 1 second and I have about 1 million coordinates to check. What is the best approach to speed things up? If my current approach is completely wrong, please advise on how I should do so! Unsure on how to get the bbox for the countries I am looking at(only 2) and I've downloaded the .osm files but unsure how to use them. Currently using the following(c1 and c2 are the coordinates):
Thank you! asked 08 Feb '19, 02:32 hellu aseerel4c26 ♦ |
Running a million requests against the Overpass API will get you blocked. Don't do it. The project gives away its data for free, but we have to pay for servers like everyone else does, and checking your one million coordinates for you is not an appropriate use of our server resources. Also, Nominatim (the geocoder) seems like a much better match for your problem than Overpass, though the same usage restrictions apply. What you should be doing is setting up your own database, and then querying that. Most likely you'll want to set up a local Nominatim instance, though if you're not interested in administrative entities and really just want the name of the nearest road, a simplified answered 08 Feb '19, 06:52 Frederik Ramm ♦ 1
Hi! thanks for the heads up. just to confirm, I should be following this http://nominatim.org/release-docs/latest/admin/Installation/ to set up my own Nominatim server? and the dataset would the the <countryname>-latest.osm.pbf file?
(08 Feb '19, 07:21)
hellu
Yes that should work. As I said, depending on what exactly your problem is, other approaches might also work but a standard Nominatim install is certainly a good start.
(08 Feb '19, 08:17)
Frederik Ramm ♦
|