Skip to content

arminHadzic/Panorama_Valhalla

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
csv
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Panorama_Valhalla

NOTE: autocost.cc was designed for Unix file paths, so change said paths before running on a non-Unix OS.

  1. Install valhalla via: https://github.com/valhalla/valhalla

  2. Make sure to install the Kentucky tileset via: http://download.geofabrik.de/north-america/us/kentucky-latest.osm.pbf

  3. Replace all available Valhalla source code files with the equivalent Panorama-Valhalla repo files

  4. Follow instructions at https://github.com/valhalla/valhalla for initial compile

  5. After initial compile, this abbreviated compile process can be used: make clean ./autogen.sh ./configure make test -j$(nproc) sudo make install

  6. To run the code, in the highest level Valhalla directory execute the following: valhalla_route_service valhalla.json 1

  7. In a secondary terminal execute: curl http://localhost:8002/route --data '{"locations":[{"lat":38.042126,"lon":-84.555496,"type":"break","city":"Lexington","state":"KY"},{"lat":38.02869,"lon":-84.602348,"type":"break","city":"Lexington","state":"KY"}],"costing":"auto","directions_options":{"units":"miles"}}' | jq '.' > ../results/my_route.json

  8. The result of the route should be stored in "my_route.json" located in the results directory. a. To see the route on a map do the following: I. go to the demos/polyline/ directory II. drop index.html onto a web browser II. in the "Encoded Line:" box enter "shape" parameter from my_route.json.

     Ex: "shape":
     "c~{pgArkzg`DhGcG~v@so@hCgDpBuDl@yB^}@z@uDfDiWbFm_@VyBd@yCjL_|@dErFl_@pGhVhCfNl@pXNhf@uErLkBhGyAjKiC`MeEtJgErQmJfNmIxLoJjAgCt@yBd@yBvc@uZbK_IjGeElJeFzP_IzKuD~SsGjsAm_@xGeD|@_@hHuDnHuEbLoIlJoIpGeEzAm@xB?zA?zA\\rFjBzt@b[`Cz@nh@|Tzo@vY|r@rZhl@xWxp@tYlKpG`LpHhHrFrKlJpMxM|c@|h@vb@|i@lK|JvCfCnDjBfDxA~C|@~Cl@tJl@fIm@vDm@xA]hC}@dEiBrFwDjFcF|Os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I}E~I_D|IqBzK}E~q@m@xBcAzAcBjBkA\\qB\\cB]_D{AoIqGqnGavEi_BkjAyfDqbCwSiMgOqHe~@{_@geBgw@mZyMag@kUst@s\\ow@o]evB{~@nRbo@xBjLlAxL\\zKLzLk@xVsA|Tu@nI{AlJiB|J_Opp@s[huAuYtmAwHdZcLre@sAnH}@`H]`I]jKGxW{@n|@m@nr@Wha@M~]e@xv@GzKyBz@kB\\mD]aCkAkGsFwCwCiCgDyByB}DiCkFiCuJsFaHqGyGaHqHaHmEuEaCiB
    
  9. When finished running Valhalla, terminate the program in the 1st terminal window.

Featured in FARSA:

FARSA: Fully Automated Roadway Safety Assessment

https://arxiv.org/abs/1901.06013

BibTex:

@article{DBLP:journals/corr/abs-1901-06013,
  author    = {Weilian Song and
	       Scott Workman and
	       Armin Hadzic and
	       Xu Zhang and
	       Eric Green and
	       Mei Chen and
	       Reginald R. Souleyrette and
	       Nathan Jacobs},
  title     = {{FARSA:} Fully Automated Roadway Safety Assessment},
  journal   = {2018 IEEE Winter Conference on Applications of Computer Vision (WACV)},
  year      = {2018},
}

About

Modified Mapzen's Valhalla GPS routing engine to accept a Convolutional Neural Network input via CSV.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE.md
MIT
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages