anvaka / ngraph.path.demo

This is a demo project for ngraph.path

Home Page:https://anvaka.github.io/ngraph.path.demo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I convert the `.osm` file to a `.co.bin` or `.gr.bin` file?

timczm opened this issue · comments

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?

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.