2/location/geo/is domestic/en
location/geo/is_domestic
Whether geography information coordinates are domestic coordinates.
URL
https://api.weibo.com/2/location/geo/is_domestic.json
Supported Formats
JSON
HTTP Request Method
GET
Requires Login
false
See the Login and Authorization Mechanism Statement for login and authorization details.
Requests Count Limitation
Level:Normal
Count Limitation:true
See the Interface Access Rights Statement for the request count limitation details.
Request Parameters
Requires | Type and Range | Description | |
---|---|---|---|
source | false | string | This parameter is not needed when using OAuth.The value of this parameter is the AppKey. |
access_token | false | string | This parameter is required when using OAuth.You will get the access_token after oauth authorization. |
coordinates | true | string | Coordinates to be judged.Format:longitude,latitude,character identification|longitude,latitude,character identification; Longitude and latitude are separated by comma.Character identification is used for the returned value identification. Multiple coordinates are separated by “|”, and are limited by 50. Example:coordinates=120.035847163,23.1014362572,g1|116.035847163,38.1014362572,g2 |
Notes
None
Response
JSON Example
{ "g1": { "type": 1, "address": "台湾" }, "g2": { "type": 1, "address": "河北省 衡水市 武强县" }, "g3": { "type": 0, "address": "" } }
See the Error Code Description for the error information details.
Field Description
Returned Field | Field Type | Field Description |
---|---|---|
type | int | Whether is domestic coordinate.0:foreign coordinate; 1:domestic coordinate |
address | string | Practical address for the coordinate,can be null |
Others
None