POST api/Location/Address

Convert the lat/lng to address, this is only work in China now, consult for engineer to support other countries

Request Information

Body Parameters

AddressModel
NameDescriptionTypeAdditional information
Lat

latitude

decimal number

None.

Lng

longitude

decimal number

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.0,
  "Lng": 2.0,
  "Token": "sample string 3",
  "Language": "sample string 4",
  "AppId": "sample string 5"
}

application/xml, text/xml

Sample:
<AddressModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 5</AppId>
  <Language>sample string 4</Language>
  <Token>sample string 3</Token>
  <Lat>1</Lat>
  <Lng>2</Lng>
</AddressModel>

Response Information

Resource Description

AddressResult
NameDescriptionTypeAdditional information
Address

string

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Address": "sample string 1",
  "State": 2
}

application/xml, text/xml

Sample:
<AddressResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>2</State>
  <Address>sample string 1</Address>
</AddressResult>