distance

Calculate distance from one origin to multiple destinations

Changed on
get/distance

Request

  • Base URL
    https://api.geocod.io/v2
  • URL
    https://api.geocod.io/v2/distance
  • Auth
    API key in query parameter api_key

Query parameters

originstring required
destinations[]string[] required
mode'driving' | 'haversine' | 'straightline'
units'miles' | 'km'
max_resultsinteger
max_distancenumber
max_durationinteger
order_by'distance' | 'duration'
min_distancenumber
min_durationinteger
sort_order'asc' | 'desc'
countrystring

Response

Successful response

modestring

Changes

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property //// to the response with the status