|
|
@ -103,11 +103,12 @@ export function searchNearby(map, keyword) { |
|
|
|
const center = map.getCenter(); |
|
|
|
const url = urlSdtdt.search; |
|
|
|
const { status, result } = await requestGet(url, { |
|
|
|
area: `CIRCLE(${center.lon} ${center.lat} 1000000)`, |
|
|
|
// area: `CIRCLE(${center.lon} ${center.lat} 1000000)`,
|
|
|
|
words: keyword, |
|
|
|
city: "全国", |
|
|
|
city: "烟台", |
|
|
|
uid: "navinfo", |
|
|
|
st: "LocalSearch", |
|
|
|
tk: "e758167d5b90c351b70a979c0820840c", |
|
|
|
// tk: "e758167d5b90c351b70a979c0820840c",
|
|
|
|
}); |
|
|
|
|
|
|
|
if ( |
|
|
@ -362,7 +363,9 @@ export default function init(ele, position, params) { |
|
|
|
const { status, result } = await requestGet(url, { |
|
|
|
point: lng + "," + lat, |
|
|
|
type: "11", |
|
|
|
tk: "e758167d5b90c351b70a979c0820840c", |
|
|
|
st: "Rgc2", |
|
|
|
output: "json", |
|
|
|
// tk: "e758167d5b90c351b70a979c0820840c",
|
|
|
|
}); |
|
|
|
if (status == "ok" && result.address) { |
|
|
|
reslove({ |
|
|
|