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



Returns an estimated distance from a given latitude and longitude to the nearest saltwater.

URL Endpoints


JSON: 

https://trial.serviceobjects.com/GCR/api.svc/json/GetDistanceToWater?Latitude={LATITUDE}&Longitude={LONGITUDE}&LicenseKey={LICENSEKEY}

XML: 

https://trial.serviceobjects.com/GCR/api.svc/xml/GetDistanceToWater?Latitude={LATITUDE}&Longitude={LONGITUDE}&LicenseKey={LICENSEKEY}


GetDistanceToWater Inputs


Name

Type

Description

Latitude

String

The latitude of the location.

Longitude

String

The longitude of the location.

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


GetDistanceToWater Outputs 


Name

Type

Value

Description

MilesToWater

String

Decimal Number

An estimate on the number of miles between the given location and the nearest saltwater.

Latitude

String

Decimal Number

The latitude of the location.

Longitude

String

Decimal Number

The longitude of the location.

ClosestWaterLatitude

String

Decimal Number

The longitude of the closest saltwater location.

ClosestWaterLongitude

String

Decimal Number

The longitude of the closest saltwater location.

Error

Error

Varies

Error object indicating why the service could not return a result. See “Errors” below for more information.


References




  • No labels