Skip to main content

Calculate geographical distance.

POST 

/calculate/geodistance-v2

Returns the distance between a start and end point. The distance is calculated using a specific mode of travel, which can influence the route taken and is also used to estimate the amount of time it takes to travel.

Request

Header Parameters

    ipaas string

Bodyrequired

    startPointstringrequired

    The start point.

    Example: Flensburg
    endPointstringrequired

    The end point.

    Example: Istanbul
    modestringrequired

    The mode of travel.

    Possible values: [driving, walking, bicycling, transit]

    Example: walking

Responses

Success

Schema
    distanceInKMnumberrequired

    The distance between start and end point in kilometers when traveling.

    duration objectrequired

    The estimated amount of time it takes to travel from start to end point.

    hoursnumberrequired

    The number of hours

    minutesnumberrequired

    The number of minutes