-
Replace the
process_segment
function in lua profile for this one:function process_segment(profile, segment) io.write(segment.source.lat .. ',' .. segment.source.lon, '\n') io.write(segment.target.lat .. ',' .. segment.target.lon, '\n') os.exit() end
-
Run
node ./scripts/build_osrm_data.js uruguay.bicycle/uruguay-latest.osm.pbf bicycle.chivia > ./data/osrm/uruguay.bicycle/latlng/uruguay-latest.txt
-
Restore
process_segment
function to it's original -
Run
node ./scripts/fetch_elevation_data.js uruguay.bicycle/uruguay-latest.osm.pbf bicycle.chivia
node ./scripts/build_osrm_data.js uruguay.bicycle/uruguay-latest.osm.pbf bicycle.chivia