| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- package amap
- /**
- * 逆地理编码结果
- */
- type RegeoResult struct {
- Status string `json:"status"`
- Info string `json:"info"`
- InfoCode string `json:"infocode"`
- RegeoCodes []*RegoCode `json:"regeocodes"`
- }
- /**
- * 逆地理编码地理信息,暂时只解析出地址
- */
- type RegoCode struct {
- FormattedAddress string `json:"formatted_address"`
- }
- /**
- * 坐标转换的结果
- */
- type ConvCoordResult struct {
- Status string `json:"status"`
- Info string `json:"info"`
- InfoCode string `json:"infocode"`
- Locations string `json:"locations"`
- }
- /**
- * 天气结果
- */
- type WeatherResult struct {
- Status string `json:"status"`
- Info string `json:"info"`
- InfoCode string `json:"infocode"`
- Lives []*Live `json:"lives"` // 实况天气
- Forecasts []*Forecast `json:"forecasts"` // 预报天气
- }
- type Live struct {
- Province string `json:"province"`
- City string `json:"city"`
- AdCode string `json:"adcode"`
- Weather string `json:"weather"`
- Termperature string `json:"temperature"`
- WindDirection string `json:"winddirection"`
- WindPower string `json:"windpower"`
- Humidity string `json:"humidity"`
- ReportTime string `json:"reporttime"`
- }
- type Forecast struct{
- Province string `json:"province"`
- City string `json:"city"`
- AdCode string `json:"adcode"`
- ReportTime string `json:"reporttime"`
- Casts []*Cast `json:"casts"`
- }
- type Cast struct {
- Date string `json:"date"`
- Week string `json:"week"`
- DayWeather string `json:"dayweather"`
- NightWeather string `json:"nightweather"`
- DayTemp string `json:"daytemp"`
- NightTemp string `json:"nighttemp"`
- DayWind string `json:"daywind"`
- NightWind string `json:"nightwind"`
- DayPower string `json:"daypower"`
- NightPower string `json:"nightpower"`
- }
- /**
- * 根据ip获取位置结果
- */
- type IpResult struct {
- Status string `json:"status"`
- Info string `json:"info"`
- InfoCode string `json:"infocode"`
- Province string `json:"province"`
- City string `json:"city"`
- AdCode string `json:"adcode"`
- Rectangle string `json:"rectangle"`
- }
|