GET DistanceToCoast?State={State}&Latitude={Latitude}&Longitude={Longitude}&APIIdentifier={APIIdentifier}&User={User}&RateDate={RateDate}

The Distance To Coast service returns a location's distance to the nearest US coastlines in miles, along with the States eligibility for Wind Coverage

Request Information

Parameters

NameDescriptionAdditional information
State
Two character US State code. Example: GA (Required)

Define this parameter in the request URI.

Latitude
Latitude coordinates of the location. Example: 33.8465732 (Required)

Define this parameter in the request URI.

Longitude
Longitude coordinates of the location. Example: -84.3562778 (Required)

Define this parameter in the request URI.

APIIdentifier
An identifier assigned to MGAs by RSUI. Example: 5a6c7790-83bf-4b4c-88e1-7067413d3390 (Required)

Define this parameter in the request URI.

User
User Name that matches with the APIIdentifier. Example: John Smith (Required)

Define this parameter in the request URI.

RateDate
No documentation available.

Define this parameter in the request URI.

Response Information

(Error messages will be in the ApiMessages field)

Response body formats

application/json, text/json

Sample:
{
  "distanceToCoast": 233.35,
  "stateWindEligible": true,
  "locationWindEligible": true,
  "apiMessages": [
    "Request was successful"
  ]
}

text/html

Sample:
{"distanceToCoast":233.35,"stateWindEligible":true,"locationWindEligible":true,"apiMessages":["Request was successful"]}

application/xml, text/xml

Sample:
<DTCResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <APIMessages>
    <string>Request was successful</string>
  </APIMessages>
  <DistanceToCoast>233.35</DistanceToCoast>
  <MobileBayDTC xsi:nil="true" />
  <LakePontchartrainDTC xsi:nil="true" />
  <StateWindEligible>true</StateWindEligible>
  <LocationWindEligible>true</LocationWindEligible>
  <MobileBayRegion xsi:nil="true" />
</DTCResponse>

text/javascript, application/javascript, application/json-p

Sample:
({"distanceToCoast":233.35,"stateWindEligible":true,"locationWindEligible":true,"apiMessages":["Request was successful"]});