|
@@ -57,7 +57,7 @@ export function setBoundary(map: any, T: any, geoJson: any) {
|
|
|
|
|
|
export function getAddressLonLat(address: any) {
|
|
|
return new Promise((resolve) => {
|
|
|
- axios.get(`https://api.tianditu.gov.cn/geocoder?ds={"keyWord":"${address}"}&tk=d1ba4200b604530ba218d9bc06f296b2`).then((result) => {
|
|
|
+ axios.get(`https://api.tianditu.gov.cn/geocoder?ds={"keyWord":"${address}"}&tk=6218d958e3a4580ee410c77f3c03e484`).then((result) => {
|
|
|
console.log(result);
|
|
|
resolve(result.data.location)
|
|
|
}).catch(e => {
|