Page tree
Skip to end of metadata
Go to start of metadata



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

URL Endpoints


JSON: 

https://trial.serviceobjects.com/GCR/api.svc/json/GetDistance?FromLatitude={FROMLATITUDE}&FromLongitude={FROMLONGITUDE}&ToLatitude={TOLATITUDE}&ToLongitude={TOLONGITUDE}&LicenseKey={LICENSEKEY}

XML: 

https://trial.serviceobjects.com/GCR/api.svc/xml/GetDistance?FromLatitude={FROMLATITUDE}&FromLongitude={FROMLONGITUDE}&ToLatitude={TOLATITUDE}&ToLongitude={TOLONGITUDE}&LicenseKey={LICENSEKEY}


GetDistance Inputs


Name

Type

Description

FromLatitude

String

The latitude for location A.

FromLongitude

String

The longitude for location A.

ToLatitude

String

The latitude for location B.

ToLongitude

String

The longitude for location B.

LicenseKey

String

Your license key to use the service.
Sign up for a free trial key at
https://www.serviceobjects.com/products/address/address-geocode-us

 

GetDistance Outputs 


Name

Type

Value

Description

MilesBetween

String

Decimal Number

An estimate on the number of miles between the two coordinate locations.

KilometersBetween

String

Decimal Number

An estimate on the number of kilometers between the two coordinate locations.

FeetBetween

String

Number

An estimate on the number of feet between the two coordinate locations.

Error

Error

Varies

Error 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




  • No labels