Get route points using Google Directions API.


  • start – (location JSON object) start of route
  • end – (location JSON object) end of route
  • waypoints = [ ${location}, … ] – (optional) list of transitional points.
  • point_limit – (int. optional. min=2) If specified, the returned route will be simplified to contain this number of points (or less).

Where location described in custom types description section.


    "success": true,
    "distance": 13482, // (int) length in meters
    "time": 844,       // (int) duration in seconds
    "list": [ ${location}, ... ], // list of route points
    "key_points": [ ${key_point}, ... ] 

key_points is list of points corresponding to start point, waypoints and end point (in that sequence).
Where key_point is JSON object:

    "id": 123,        // (int) index in points 'list'
    "lat": 56.827,    // latitude
    "lng": 60.594296, // longitude
    "distance": 482,  // (int) length of full path from start in meters (0 for start point)
    "time": 144       // (int) duration of full path from start in seconds (0 for start point)


  • 215 – External service error
        "success": false,
        "status": {
            "code": 215,
            "description": "External service error"
        "errors": [${status}] // one string or nothing

    where status is one of:

    • OVER_QUERY_LIMIT – indicates the service has received too many requests from your application within the allowed time period.
    • REQUEST_DENIED – indicates that the service denied use of the directions service by your application.
    • UNKNOWN_ERROR – indicates a directions request could not be processed due to a server error.
      The request may succeed if you try again.
  • 218 – Malformed external service parameters
        "success": false,
        "status": {
            "code": 218,
            "description": "Malformed external service parameters"
        "errors": [${status}] // string

    where status is one of:

    • NOT_FOUND – indicates at least one of the locations specified in the request’s
      origin, destination, or waypoints could not be geocoded.
    • ZERO_RESULTS – indicates no route could be found between the origin and destination.
    • MAX_WAYPOINTS_EXCEEDED – indicates that too many waypoints were provided in the request.
      The maximum allowed waypoints is 8, plus the origin, and destination.
      (Google Maps API for Business customers may contain requests with up to 23 waypoints.)
    • INVALID_REQUEST – indicates that the provided request was invalid.
      Common causes of this status include an invalid parameter or parameter value.

If you have more questions please contact our support team


USA: +1 858 225 46 88

Mexico: +52 558 526 11 25

UK: +44 203 807 64 62

Russia: +7 495 128 35 56

Log in


We use сookies to improve our website, products and related services, analyze site traffic, and serve targeted advertisements. If you continue to use our services, you consent to our use of сookies. Read more