2/location/mobile/get location/en
location/mobile/get_location
Return current location information by mobile base station WIFI.
URL
https://api.weibo.com/2/location/mobile/get_location.json
Supported Formats
JSON
HTTP Request Method
POST
Requires Login
true
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. |
json | true | string | The parameter is JOSN format.Please see the following notes. |
Notes
- The interface's parameter is JSON format.
- 'Content-Type' must be 'application/json'.
- The JSON format parameter must be like the following:
{ "version": "1.1.0", "host": "api.weibo.com/2/location/mobile/get_location", "radio_type": "gsm", "request_address": true, "decode_pos": true, "ip": "192.168.0.1", "location": { "latitude": "39.08943", "longitude": "116.36843", "accuracy": "678.0" }, "cell_towers": [ { "cell_id": "4466", "location_area_code": "26630", "mobile_country_code": "460", "mobile_network_code": "0", "signal_strength": "-60" }, { "cell_id": "4466", "location_area_code": "25054", "mobile_country_code": "460", "mobile_network_code": "0", "signal_strength": "-70" }, ... ], "wifi_towers": [ { "mac_address": "00:0B:86:27:99:B0", "mac_name": "cnc", "signal_strength": "78" }, { "mac_address": "00:0B:86:28:7B:F0", "mac_name": "CMCC", "signal_strength": "90" }, ... ] }
Response
JSON Example
{ "location": { "longitude": "116.39794", "latitude": "39.90817", "accuracy": "50", "altitude": "0", "altitude_accuracy": "0", "address": { "city": "11", "province": "32", "city_name": "北京", "province_name": "朝阳区", "district": "朝阳区", "address": "中国北京市海淀区中关村" } } }
See the Error Code Description for the error information details.
Field Description
None
Others
Current location service only supports the Mainland China.
文档更新时间: 30 January 2012