POST api/GeoLocation/GetLocation
Request Information
URI Parameters
None.
Body Parameters
LocationApiModelName | Description | Type | Additional 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:
Response Information
Resource Description
Collection of LocationApiModelName | Description | Type | Additional 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" }, { "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:
<ArrayOfLocationApiModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PPL.Services.WebApi.Models.GeoLocation"> <LocationApiModel> <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> <LocationApiModel> <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> </ArrayOfLocationApiModel>