Skip to content

Releases: juancarlospaco/nim-osrm

0.1.5

03 Nov 20:59
Compare
Choose a tag to compare

Windows and Linux, x86_64, 64bit Harddware, 64bit OS.

Command Line App

Finds the best fastest Route between 2 Coordinates (lat,lon) in supplied order
using the Open Source Routing Machine for OpenStreetMap API online services.

  • For Uglyfied JSON use --ugly (does not reduce bandwith usage).
  • If you dont have any Hints for the Query just use an empty string.
  • This requires at least basic skills with JSON and OpenStreeMap.
  • The App supports English and Spanish.

Use:

./osrm --color --lower --alternatives --steps --straight --overview --hints --timeout=9 --profile=bike --format=geojson --from_lat=42.666 --from_lon=10.55 --to_lat=15.42 --to_lon=12.75 "hint,hint,hint"

Uso (Spanish):

./osrm --color --minusculas --alternativas --pasos --derecho --resumen --sugerencias --timeout=9 --perfil=bici --formato=geojson --desde_lat=42.666 --desde_lon=10.55 --hasta_lat=15.42 --hasta_lon=12.75 "hint,hint,hint"

FAQ

  • Para que sirve ?

Para hacer Apps del estilo "Como llego", para hacer Open Data, Consultas Masivas, Data Science, cosas de OpenStreetMap, jugar con datos Geo/GIS, le pasas 2 lugares y te dice como llegar en bici/auto/caminando, otros GeoCosos.

  • Que hace ?.

La App toma parametros por linea de comandos y escupe un JSON con Datos. Eso es todo basicamente. Podes volcar eso a un archivo, pasarselo a jq o usarlo desde otra App/Script/etc.

  • Yo solo hablo Espanol ?

La aplicacion de linea de comandos soporta Espanol.

  • This works without SSL ?.

Yes.

  • This works with SSL ?.

Yes.

  • This works with Asynchronous code ?.

Yes.

  • This works with Synchronous code ?.

Yes.

  • This requires API Key or Login ?.

No.

  • This requires Credit Card or Payments ?.

No.

  • Can I use the OpenStreetMap data ?.

Yes. You MUST give Credit to OpenStreetMap Contributors!.

  • How to Uglify the output?

--ugly

  • How to Lowercase the output?

--lower

  • How to enable Alternatives?

--alternatives

  • How to enable Steps?

--steps

  • How to enable Continue Straight ?

--straight

  • How to enable Overviews ?

--overviews

  • How to enable Hints ?

--hints

  • How to set a Timeout ?

--timeout=99

  • How to set the output Format ?

--format=geojson

  • How to set the "From" Coordinates ?

--from_lat=42.666 --from_lon=10.55

  • How to set the "To" Coordinates ?

--to_lat=15.42 --to_lon=12.75

  • How to use colors ?

--color

  • How to set the Profile ?

--profile=bike, --profile=car, etc

  • How to see the Help ?

--help