This operation returns an estimate on the number of miles, kilometers and feet between two sets of coordinates.

URL Endpoints

GetDistance Inputs

NameTypeDescription
FromLatitudeStringThe latitude for location A.
FromLongitudeStringThe longitude for location A.
ToLatitudeStringThe latitude for location B.
ToLongitudeStringThe longitude for location B.
LicenseKeyStringYour license key to use the service.
Sign up for a free trial key at
https://www.serviceobjects.com/address-geocode/

GetDistance Outputs

NameTypeValueDescription
MilesBetweenStringDecimal NumberAn estimate on the
number of miles between
the two coordinate
locations.
KilometersBetweenStringDecimal NumberAn estimate on the
number of kilometers
between the two
coordinate locations.
FeetBetweenStringNumberAn estimate on the
number of feet between
the two coordinate
locations.
ErrorErrorVariesError object indicating why
the service could not
return a result. See “Errors”
below for more
information.
*Miles and kilometers are rounded to the third decimal position.

References