Use the package manager pip to install osm file converter to csv file.
pip install osm2gmns
special thanks to: openstreetmap and Jiawei Lu, Xuesong (Simon) Zhou and some other scources which helped me
Download map.osm file from openstreet link*
- Open the website of openstreet from the link*.
- Go to export ans select the location.
- export the osm file.
- run the scource code with map.osm Note: Both should be in same directory
- run transportation.exe file (i was unable to upload due to big size so you can download from here or you may mail me to get it on shubhamiit30@gmail.com) note: please download the folder named transport and add map.osm file in dist folder and then run transportation.exe in dist folder.
- distance.txt file will be created which contains minimum distance corresponding to each node.
import os
import csv
import osm2gmns as og
.
.
.
.
with open('link.csv') as csv_file:
.
.
Feel free to contact me:-
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.