add
This commit is contained in:
26
internal/shared/ipgeo/city_coords.go
Normal file
26
internal/shared/ipgeo/city_coords.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package ipgeo
|
||||
|
||||
// Coord 城市经纬度
|
||||
type Coord struct {
|
||||
Lng float64
|
||||
Lat float64
|
||||
}
|
||||
|
||||
// CityCoordinates MVP阶段常用城市坐标
|
||||
var CityCoordinates = map[string]Coord{
|
||||
"北京市": {Lng: 116.4074, Lat: 39.9042},
|
||||
"上海市": {Lng: 121.4737, Lat: 31.2304},
|
||||
"广州市": {Lng: 113.2644, Lat: 23.1291},
|
||||
"深圳市": {Lng: 114.0579, Lat: 22.5431},
|
||||
"杭州市": {Lng: 120.1551, Lat: 30.2741},
|
||||
"成都市": {Lng: 104.0665, Lat: 30.5728},
|
||||
"武汉市": {Lng: 114.3055, Lat: 30.5928},
|
||||
"西安市": {Lng: 108.9398, Lat: 34.3416},
|
||||
"南京市": {Lng: 118.7969, Lat: 32.0603},
|
||||
"苏州市": {Lng: 120.5853, Lat: 31.2989},
|
||||
"重庆市": {Lng: 106.5516, Lat: 29.5630},
|
||||
"天津市": {Lng: 117.2009, Lat: 39.0842},
|
||||
"郑州市": {Lng: 113.6254, Lat: 34.7466},
|
||||
"长沙市": {Lng: 112.9388, Lat: 28.2282},
|
||||
"青岛市": {Lng: 120.3826, Lat: 36.0671},
|
||||
}
|
||||
Reference in New Issue
Block a user