3 ms·
You would still have to roll your own offline geocoder. From my experience with OSM and Oracle's Spatial Geocoder, getting accurate driving directions can be a
by cbaleanu 13y ago
You would still have to roll your own offline geocoder.
From my experience with OSM and Oracle's Spatial Geocoder, getting accurate driving directions can be a very 'interesting' process.
- ris 13y agoRoll your own? Why not use one of the existing widely-used OSM geocoders? http://wiki.openstreetmap.org/wiki/Photon http://wiki.openstreetmap.org/wiki/Photon http://wiki.openstreetmap.org/wiki/Nominatim http://wiki.openstreetmap.org/wiki/Nominatim
- cbaleanu 13y agoSorry, lost in translation there. I meant deploy an offline geocoder.
- ris 13y agoEither of those examples I provided can be used "offline" provided you have a local copy of the dataset, which is the given assumption.
- toomuchtodo 13y agoIs it possible to embed the geocode data into the OSM dataset? So you wouldn't need to geocode on the fly?
- maxerickson 13y agoTo a first approximation, the geocode data is embedded in the planet file (as address tags associated with some object or another). But most consumers aren't using the data as organized in the planet file, they are generating extracts based on extent or whatever criteria, and usually processing the data into some data model that is better for the work they are doing.
- toomuchtodo 13y agoThanks. I was curious if not only could you have all the OSM data offline, but if you could have all of the integrated geocoding data offline as well.
- maxerickson 13y agoGeocoders using OSM are also usually pulling in address range data from TIGER.
- toomuchtodo 13y agoThe Address Ranges National Geodatabase (~500MB) I'm assuming? http://www.census.gov/geo/maps-data/data/tiger-geodatabases.html http://www.census.gov/geo/maps-data/data/tiger-geodatabases....
- maxerickson 13y agoI guess not (but I've never really messed with it): http://wiki.openstreetmap.org/wiki/Nominatim/Installation#I.27ve_successfully_imported_an_excerpt_of_the_US_but_my_results_differ_from_OSM.27s_Nominatim_instance._All_the_house_numbers_seem_to_be_missing.21 http://wiki.openstreetmap.org/wiki/Nominatim/Installation#I.... What a nice link.
- nl 13y agoSee also http://www.datasciencetoolkit.org/ http://www.datasciencetoolkit.org/, which has both a Google-style Geocoder and Street Address to Coordinates APIs. Uses OSM data, and ships as a downloadable VM with all data.
- mtmail 13y agoYou can. For worldwide coverage you'd need at least 500GB disc space and 2-3 days of data crunching (assuming 32GB RAM, 8 cores, SSDs...) to build the Nominatim database. Photon is using Nominatim's database as input and will take another 2 days (if I remember correctly, met the author last year) to build. (I work on OSM data professionally)