POST api/Poi/GetPoiList

Get the poi information for the surrounding specified information type

Request Information

Body Parameters

ObdPoiModel
NameDescriptionTypeAdditional information
Lat

latitude

decimal number

None.

Lng

longitude

decimal number

None.

PoiType

type 1. automotive service center 2. gas station 3. park 4. vehicle maintenance and repair 5. shopping 6. entertainment 7. food 8. hotel

integer

None.

MapType

map style

string

None.

Token

Get it after logging in Token

string

None.

Language

Language Option

string

None.

AppId

APP Application Identifier

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Lat": 1.1,
  "Lng": 2.1,
  "PoiType": 3,
  "MapType": "sample string 4",
  "Token": "sample string 5",
  "Language": "sample string 6",
  "AppId": "sample string 7"
}

application/xml, text/xml

Sample:
<ObdPoiModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 7</AppId>
  <Language>sample string 6</Language>
  <Token>sample string 5</Token>
  <Lat>1.1</Lat>
  <Lng>2.1</Lng>
  <MapType>sample string 4</MapType>
  <PoiType>3</PoiType>
</ObdPoiModel>

Response Information

Resource Description

Statestatus code
0. success
100. no data
4000. failure

ObdPoiResult
NameDescriptionTypeAdditional information
Size

quntity

integer

None.

Items

collection

Collection of ObdPoi

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Size": 1,
  "Items": [
    {
      "Province": "sample string 1",
      "City": "sample string 2",
      "District": "sample string 3",
      "Name": "sample string 4",
      "Address": "sample string 5",
      "Lat": 6.1,
      "Lng": 7.1,
      "Distance": 8.1,
      "Angle": "sample string 9"
    },
    {
      "Province": "sample string 1",
      "City": "sample string 2",
      "District": "sample string 3",
      "Name": "sample string 4",
      "Address": "sample string 5",
      "Lat": 6.1,
      "Lng": 7.1,
      "Distance": 8.1,
      "Angle": "sample string 9"
    }
  ],
  "State": 2
}

application/xml, text/xml

Sample:
<ObdPoiResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>2</State>
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <d2p1:ObdPoi>
      <d2p1:Address>sample string 5</d2p1:Address>
      <d2p1:Angle>sample string 9</d2p1:Angle>
      <d2p1:City>sample string 2</d2p1:City>
      <d2p1:Distance>8.1</d2p1:Distance>
      <d2p1:District>sample string 3</d2p1:District>
      <d2p1:Lat>6.1</d2p1:Lat>
      <d2p1:Lng>7.1</d2p1:Lng>
      <d2p1:Name>sample string 4</d2p1:Name>
      <d2p1:Province>sample string 1</d2p1:Province>
    </d2p1:ObdPoi>
    <d2p1:ObdPoi>
      <d2p1:Address>sample string 5</d2p1:Address>
      <d2p1:Angle>sample string 9</d2p1:Angle>
      <d2p1:City>sample string 2</d2p1:City>
      <d2p1:Distance>8.1</d2p1:Distance>
      <d2p1:District>sample string 3</d2p1:District>
      <d2p1:Lat>6.1</d2p1:Lat>
      <d2p1:Lng>7.1</d2p1:Lng>
      <d2p1:Name>sample string 4</d2p1:Name>
      <d2p1:Province>sample string 1</d2p1:Province>
    </d2p1:ObdPoi>
  </Items>
  <Size>1</Size>
</ObdPoiResult>