# Driving Directions - Routes & Directions from Google Maps > Get driving directions and best routes from an origin to a destination in real-time, from Google Maps. ## Overview Driving Directions is a fast and reliable API for driving directions and best routes from an origin to a destination in real-time, from Google Maps. It returns routes as structured JSON via REST. Who is this API for: developers building navigation, logistics and delivery routing, travel, and mapping apps. What it returns: driving directions and best routes with steps, distance, and duration between an origin and destination. Need help integrating? Contact support@openwebninja.com. For high volume / large scale plans, please contact support@openwebninja.com. ## Endpoints ### GET /get-directions - Get Directions Get driving directions from an origin to a destination. Parameters: - **origin** (string, required): Directions origin / starting point - specified as free-text location query or latitude, longitude pair. **Examples:** `Church St & 29th St, San-Francisco, CA, USA` `37.743292, -122.420437` - **destination** (string, required): Directions destination - specified as free-text location query or latitude, longitude pair. **Examples:** `145 5th Ave, New York, NY, USA` `40.649238, -73.974229` - departure_time (number, default: `0`): Departure time - specified as a Unix-Timestamp in origin local time. **Example:** `1665785617` - arrival_time (number, default: `0`): Arrival time - specified as a Unix-Timestamp in destination local time. **Example:** `1665752460` - distance_units (string, default: `auto`, allowed: auto | km | mi): Set the distance units in the response to Kilometers or Miles. The default auto value will use the common distance units used in origin/destination (e.g. Miles in the US, Kilometers in Germany). - avoid_routes (string): Route types to avoid - specified as a comma delimited list of the following values: `tolls`, `highways`, `ferries`. **Examples:** `ferries,tolls` `highways` - country (string, default: `US`): The country/region to use for the query, specified as a 2-letter country code - see `ISO 3166-1 alpha-2`. - language (string, default: `EN`): The language to use for the query, specified as a 2-letter language code - see `ISO 639-1 alpha-2`. Full URL: `https://api.openwebninja.com/driving-directions/get-directions` ## Base URL and Authentication - Base URL: `https://api.openwebninja.com/driving-directions` - Auth: API key in the `x-api-key` header. Get a key by subscribing (free tier available) at https://app.openwebninja.com/api/driving-directions ## Topics driving directions api, directions api, routing api, google maps directions api, navigation api, route planner api, distance api, travel time api ## Links - API page: https://www.openwebninja.com/api/driving-directions - Get an API key / subscribe: https://app.openwebninja.com/api/driving-directions - Pricing & plans: https://app.openwebninja.com/api/driving-directions/pricing - Website: https://www.openwebninja.com - OpenAPI spec: https://openwebninja.s3.us-east-1.amazonaws.com/portal/openapi/driving_directions.yaml - Support: support@openwebninja.com _Last updated: 2026-05-27_