Description

Returns routing data via a redirect to services provided by Graphhopper.

Service includes directions with distance and time values as well as waypoints or GPX for map display.

Endpoint: https://api.giraffegeo.com/routing

required parameters description
start in format "lat,lng", e.g. "44.00,-114.123"
end in format "lat,lng", e.g. "44.00,-114.123"

Please see https://graphhopper.com/api/1/docs/routing/ for full details.

The Giraffe Geo API differs only by replacing the multiple "point" parameters with a single "start" and single "end" parameter. All other paramaters may be passed as optional paramaters to the Graphhopper API.

Example python implementation

import requests
headers = {'x-api-key':'your_key'}

payload = {
    'start':'47.60194,-122.33388',
    'end':'47.608736,-122.340056',
    'locale':'en',
    'vehicle':'foot'
          }
s = requests.get('https://api.giraffegeo.com/routing',headers=headers,params=payload)
s = s.json()