📅  最后修改于: 2022-03-11 14:48:28.531000             🧑  作者: Mango
const db = app.get('knex');
// const distance = await db.raw(
// `SELECT ST_Distance(
// ST_Transform('SRID=4326;POINT(${originCoords})'::geometry, 3857),
// ST_Transform('SRID=4326;LINESTRING(${destinationCoords})'::geometry, 3857)
// );
// `,
// );