Address geolocation on own server

☆樱花仙子☆ 提交于 2019-12-10 10:59:20

问题


Disclaimer: Any API is NO OPTION for me because of the vast amounts of places I want to process. I know there are plenty of services out there but I'd like to have my own solution

Ok, after this is said here my question :)

There are platforms like OpenStreetMap and maybe others who are doing very well in bringing the world of maps into the open source community.

What I need

I have an address located anywhere in the world and I want to compute the latitude and longitude, elevation would be nice but doesn't really matter.

I've seen plenty of solutions offered around OpenStreetMap to generate custom maps, generate map tiles for a 'Google-Like' web-map experience etc.

I can't imagine how data looks like to be able to create a detailed map from it but if I am able to generate maps and even put pointers at specific POI or addresses or coordinates - it must be possible to do the thing reverse as well.

Map gurus out there point me to the right directions :) Any any tools running on linux, any free available database and any piece of code or algorithm to compute a 11.12345, 44.12425-style point out of my address would be helpful - as long as it does not rely on a company at stock or a web service.

So far Google did this job quite well, but they're getting d*** greedy lately :)

If this also helps me to understand how to render a pretty map I'd definitly not say no

What I can do

I am very good at address normalization and matching, so that's not a problem. But I need some hints and data sources where to start digging.

EDIT1:

Of course, possible resolution is depending on available data quality. I'd like to be able to at least be accurate on street level worldwide. some regions dont have even streets on google so of course those bushlands don't matter for 100m accuracy


回答1:


OpenStreetMap uses Nominatim for both address lookup and reverse geocoding. You can install a local instance on your server, import the OSM database and then run your own queries on it.



来源:https://stackoverflow.com/questions/13595768/address-geolocation-on-own-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!