一、详细介绍
全新IP定位系统源码 全开源 轻量化
是通过经纬度进行解析定位的,精度自行测试,适合二开
仅供研究学习使用,请勿非法使用!
二、效果展示
1.部分代码
代码如下(示例):
function convertCoordinates($longitude, $latitude, $amap_key) {
$url = "?locations={$longitude},{$latitude}&coordsys=gps&key={$amap_key}";
$response = file_get_contents($url);
if ($response) {
$data = json_decode($response, true);
if ($data['status'] == 1 && isset($data['locations'])) {
$converted = explode(',', $data['locations']);
return [
'longitude' => $converted[0],
'latitude' => $converted[1]
];
}
}
return [
'longitude' => $longitude,
'latitude' => $latitude
];
}
2.效果图展示
三、学习资料下载
蓝奏云:https://qumaw.lanzoul.com/iQvxy33sto4h