How can I convert the `.osm` file to a `.co.bin` or `.gr.bin` file?
timczm opened this issue · comments
chenzhiming commented
I have downloaded the corresponding data file called map.osm
on www.openstreetmap.org
. I noticed that there are some map data under /static
in the program, such as xx.co.bin
and xx.gr.bin
.
How can I convert the .osm
file to a .co.bin
or .gr.bin
file?
chenzhiming commented
I think I know how to convert.
We should go to https://github.com/anvaka/playground/tree/master/extract-osm-roads
, download this folder.
Move to this folder from the command line, do npm install
and node extract.js newyork.xml newyork
. And you will find two new file in this folder.