支持全国wifi定位
支持格式: JSON/XML
请求方式: GET/POST明文方式请求参数:名称类型必填说明keystring是API KEYmac1String是mac地址1mac2String是mac地址2typeInt否返回坐标类型 0(google坐标),1( 百度坐标),2(gps坐标);默认值: 0密文方式请求参数:名称类型必填说明IsEncryptbool是是否密文传输方式keystring是API KEYparamsstring是3des ECB模式 PKCS7填充模式 加密 3des("mac1=14:e6:e4:4f:10:5e&mac2=08:10:75:d1:8c:3e&type=1","openId前24位")返回字段:名称类型说明addressObject regionString省份名称 countyString区县名称 streetString街道名称 street_numberString参照物描述 cityString城市名称 countryString国家名称addressDescriptionString地址描述longitudeDouble经度latitudeDouble纬度accuracyString精度明文JSON返回示例:{ "location": { "address": { "region": "江苏省", "county": "吴中区", "street": "唯亭镇", "street_number": "荷花广场", "city": "苏州市", "country": "中国" }, "addressDescription": "江苏省苏州市吴中区波特兰小街唯亭镇荷花广场波特兰小街东", "longitude": 120.7259200, "latitude": 31.2968700, "accuracy": "1000" }, "access_token": null, "ErrCode": 0}代码示例:-JAVAOkHttpClient client = new OkHttpClient();Request request = new Request.Builder() .url("http://api.haoservice.com/api/getLocationByWifi?mac1=14:e6:e4:4f:10:5e&mac2=08:10:75:d1:8c:3e&key=your_AppKey") .get() .build();Response response = client.newCall(request).execute();