WorkCameraf/unpackage/dist/dev/mp-weixin/common/mapTranslateResult.js
2025-08-20 11:45:36 +08:00

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