I’m new to Open-Street-Map and all it’s relative tools and kits.
We have a AI search algorithm (that searches for shortest path/road between two given locations in a map) developed by a researchers in the Academy needs to be tested and compared with another algorithms, so we want to test it on some real maps.
So I’m looking for a way to export some real maps to a file/DB, and getting the exported file format…
I will appreciate any help from anyone of you with finding a way to export some real maps form openstreetmap (exporting all the details of the map to some data file or database) and how to decode/understand the exported data format.
OpenStreetMap exports all of its data as “planet files” in an xml format. You can find more details about it in the wiki at http://wiki.openstreetmap.org/wiki/Planet In addition to the full planet.osm which is very large (8Gb compressed and probably somewhere on the order of 80 Gb uncompressed XML), there are various country level extracts that can be downloaded from e.g. http://download.geofabrik.de/osm/ or http://download.cloudmade.com/. If you only need some small areas, e.g. to see the file formats, or test your import scripts into your router, you can also get the data for small areas directly from the OSM api, e.g. via the “export tab” on the main osm page http://www.openstreetmap.org/export
Once you get the OSM data you will then need to write a converter to transcode the information into a dataformat that you algorithm can use, as the .osm format is good for data exchange, but not necessarily for anyspecific application.