Versions in this module Expand all Collapse all v1 v1.0.0 Jun 4, 2024 Changes in this version + type AllDistrictResponse struct + Count int + Districts []*District + type AmapClient struct + Direction *Direction + Location *Location + Place *Place + func NewAmapClient(key, secret string) *AmapClient + func (a *AmapClient) DoRequest(url, method string, params url.Values) (resp *http.Response, err error) + type Direction struct + func (d *Direction) Driving(request *DrivingRequest) (*DrivingResponse, error) + type District struct + Adcode string + Center string + Citycode any + Districts []*District + Level string + Name string + type DrivingRequest struct + Destination string + Origin string + ShowFields string + Strategy int + Waypoints []string + type DrivingResponse struct + Count int + Route Route + type Geo struct + Adcode string + City any + Citycode string + Country string + FormattedAddress string + Level string + Location string + Province string + type GeoResponse struct + Count string + GeoCodes []Geo + type IpResponse struct + Adcode string + City any + Province string + Rectangle string + type Location struct + func (l *Location) ChinaDistricts() ([]*District, error) + func (l *Location) Geo(address, city string) (*GeoResponse, error) + func (l *Location) IpLocation(ip string) (*IpResponse, error) + func (l *Location) ReGeo(request *ReGeoRequest) (*ReGeoResponse, error) + type Place struct + func (d *Place) Search(request *PlaceRequest) (*PlaceResponse, error) + type PlaceRequest struct + CityLimit bool + Keywords string + PageNum int + PageSize int + Region string + ShowFields string + Types string + type PlaceResponse struct + Count int + Pois []struct{ ... } + type ReGeoRequest struct + Location string + Radius int + type ReGeoResponse struct + ReGeoCode struct{ ... } + type Response struct + Info string + Infocode string + Status string + type Route struct + Destination string + Origin string + Paths []struct{ ... }