20 lines
748 B
JavaScript
20 lines
748 B
JavaScript
"use strict";
|
|
const common_request = require("./request.js");
|
|
const TENGXUN_BASE = "https://wc.zpc-xy.com/webapi";
|
|
const getLocationTranslate = async (locations) => {
|
|
const url = `${TENGXUN_BASE}/GetLocationTranslate?locations=${locations}&type=1`;
|
|
const res = await common_request.get(url, {});
|
|
if (res.code == 200) {
|
|
return res.data;
|
|
}
|
|
return "";
|
|
};
|
|
const getLocationGeocoder = async (locations) => {
|
|
const url = `${TENGXUN_BASE}/GetLocationGeocoder?location=${locations}`;
|
|
const res = await common_request.get(url, {});
|
|
return res.data;
|
|
};
|
|
exports.getLocationGeocoder = getLocationGeocoder;
|
|
exports.getLocationTranslate = getLocationTranslate;
|
|
//# sourceMappingURL=../../.sourcemap/mp-weixin/common/mapTranslateResult.js.map
|