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| Name | Description | Type | Additional information |
|---|---|---|---|
| Lat |
纬度 |
decimal number |
None. |
| Lng |
经度 |
decimal number |
None. |
| Token |
登录后获取到的 Token |
string |
None. |
| Language |
语言选项 |
string |
None. |
| AppId |
APP应用标识 |
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
| Name | Description | Type | Additional information |
|---|---|---|---|
| Address | string |
None. |
|
| State |
状态码 |
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>