GET api/MapPoint/NearestAirportToIp?ip={ip}

Endpoint will use the provided {id} route parameter to return the latitude, longitude, and nearest Market.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ip

'ip' is the IP Address for the request.

string

None.

Body Parameters

None.

Response Information

Resource Description

NearestAirportToIPResponse containing the latitude, longitude, and nearest Market.

NearestAirportToIPResponse
NameDescriptionTypeAdditional information
IPAddress

string

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

NearestAirport

Market

None.

Source

string

None.

Response Formats

application/json, text/json

Sample:
{
  "IPAddress": "sample string 1",
  "Latitude": 1.1,
  "Longitude": 1.1,
  "NearestAirport": {
    "DescriptionLong": "sample string 1",
    "DescriptionShort": "sample string 2",
    "MarketCode": "sample string 3",
    "CountryCode": "sample string 4"
  },
  "Source": "sample string 2"
}

text/xml

Sample:
<NearestAirportToIPResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://Trisept.TB.Services.MapPoint.DataContracts/2008/07">
  <IPAddress>sample string 1</IPAddress>
  <Latitude>1.1</Latitude>
  <Longitude>1.1</Longitude>
  <NearestAirport xmlns:d2p1="http://Trisept.TB.Services.DataContracts/2007/05/Common">
    <d2p1:DescriptionLong>sample string 1</d2p1:DescriptionLong>
    <d2p1:DescriptionShort>sample string 2</d2p1:DescriptionShort>
    <d2p1:MarketCode>sample string 3</d2p1:MarketCode>
    <d2p1:CountryCode>sample string 4</d2p1:CountryCode>
  </NearestAirport>
  <Source>sample string 2</Source>
</NearestAirportToIPResponse>