修改key
This commit is contained in:
@@ -42,8 +42,9 @@ func (a *API) AccessStorePage(fullURL string, bizParams map[string]interface{})
|
||||
|
||||
func (a *API) GetCoordinateFromAddressByPage(address string, cityCode int) (lng, lat float64, err error) {
|
||||
result, err := a.AccessStorePage("https://restapi.amap.com/v3/place/text", map[string]interface{}{
|
||||
"s": "rsv3",
|
||||
"key": "e07ffdf58c8e8672037bef0d6cae7d4a",
|
||||
"s": "rsv3",
|
||||
"key": "49ae7e4552909cf33faba70443ad775b",
|
||||
//"key": "e07ffdf58c8e8672037bef0d6cae7d4a",
|
||||
"page": 1,
|
||||
"offset": 10,
|
||||
"city": cityCode,
|
||||
@@ -78,8 +79,9 @@ type GetCoordinateFromAddressByPageAllResult struct {
|
||||
func (a *API) GetCoordinateFromAddressByPageAll(address string, cityCode int) (getCoordinateFromAddressByPageAllResult *GetCoordinateFromAddressByPageAllResult, err error) {
|
||||
getCoordinateFromAddressByPageAllResult = &GetCoordinateFromAddressByPageAllResult{}
|
||||
result, err := a.AccessStorePage("https://restapi.amap.com/v3/place/text", map[string]interface{}{
|
||||
"s": "rsv3",
|
||||
"key": "e07ffdf58c8e8672037bef0d6cae7d4a",
|
||||
"s": "rsv3",
|
||||
"key": "49ae7e4552909cf33faba70443ad775b",
|
||||
//"key": "e07ffdf58c8e8672037bef0d6cae7d4a",
|
||||
"page": 1,
|
||||
"offset": 10,
|
||||
"city": cityCode,
|
||||
|
||||
Reference in New Issue
Block a user