POST api/GeoLocation/GetAddress

Request Information

URI Parameters

None.

Body Parameters

LocationApiModel
NameDescriptionTypeAdditional information
ExternalId

string

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

Address

string

None.

City

string

None.

State

string

None.

Zip_Code

string

None.

TimeZone

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ExternalId": "sample string 1",
  "Latitude": 2.1,
  "Longitude": 3.1,
  "Address": "sample string 4",
  "City": "sample string 5",
  "State": "sample string 6",
  "Zip_Code": "sample string 7",
  "TimeZone": "sample string 8"
}

application/xml, text/xml

Sample:
<LocationApiModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PPL.Services.WebApi.Models.GeoLocation">
  <Address>sample string 4</Address>
  <City>sample string 5</City>
  <ExternalId>sample string 1</ExternalId>
  <Latitude>2.1</Latitude>
  <Longitude>3.1</Longitude>
  <State>sample string 6</State>
  <TimeZone>sample string 8</TimeZone>
  <Zip_Code>sample string 7</Zip_Code>
</LocationApiModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'LocationApiModel'.

Response Information

Resource Description

LocationApiModel
NameDescriptionTypeAdditional information
ExternalId

string

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

Address

string

None.

City

string

None.

State

string

None.

Zip_Code

string

None.

TimeZone

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ExternalId": "sample string 1",
  "Latitude": 2.1,
  "Longitude": 3.1,
  "Address": "sample string 4",
  "City": "sample string 5",
  "State": "sample string 6",
  "Zip_Code": "sample string 7",
  "TimeZone": "sample string 8"
}

application/xml, text/xml

Sample:
<LocationApiModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PPL.Services.WebApi.Models.GeoLocation">
  <Address>sample string 4</Address>
  <City>sample string 5</City>
  <ExternalId>sample string 1</ExternalId>
  <Latitude>2.1</Latitude>
  <Longitude>3.1</Longitude>
  <State>sample string 6</State>
  <TimeZone>sample string 8</TimeZone>
  <Zip_Code>sample string 7</Zip_Code>
</LocationApiModel>