Skip to content

Instantly share code, notes, and snippets.

@hoerup
Created January 11, 2016 11:05
Show Gist options
  • Select an option

  • Save hoerup/543830af6c31f54f8e2f to your computer and use it in GitHub Desktop.

Select an option

Save hoerup/543830af6c31f54f8e2f to your computer and use it in GitHub Desktop.
osrm-routed post
# curl -v --data "src=55.2622189848261,9.71226630748429&dst=55.2585,9.70742" http://127.0.0.1:5000/table
* Hostname was NOT found in DNS cache
* Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 5000 (#0)
> POST /table HTTP/1.1
> User-Agent: curl/7.38.0
> Host: 127.0.0.1:5000
> Accept: */*
> Content-Length: 57
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 57 out of 57 bytes
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Methods: GET
< Access-Control-Allow-Headers: X-Requested-With, Content-Type
< Content-Length: 132
< Content-Type: application/json; charset=UTF-8
< Content-Disposition: inline; filename="response.json"
<
* Closing connection 0
{"status":200,"source_coordinates":[[55.262184,9.712255]],"destination_coordinates":[[55.258438,9.707142]],"distance_table":[[603]]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment