feat: 新增 SGS SDK 数据适配器与腾讯地图服务

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
lyf
2026-06-26 04:21:46 +08:00
parent 15fbbec12d
commit cc7c21a285
13 changed files with 2938 additions and 0 deletions

87
src/config/museum.ts Normal file
View File

@@ -0,0 +1,87 @@
/**
* 深圳自然博物馆配置信息
* 统一管理博物馆相关常量
*/
/**
* 博物馆坐标信息GCJ-02 坐标系)
*/
export const MUSEUM_LOCATION = {
/** 纬度 */
latitude: 22.692763,
/** 经度 */
longitude: 114.363572,
/** 名称 */
name: '深圳自然博物馆',
/** 地址 */
address: '深圳市坪山区',
/** POI ID */
poiId: '7043042949572197975'
} as const
/**
* 博物馆入口坐标(主入口)
*/
export const MUSEUM_ENTRANCE_LOCATION = {
/** 纬度 */
latitude: 22.692363,
/** 经度 */
longitude: 114.363487,
/** 名称 */
name: '主入口'
} as const
/**
* 博物馆建筑围栏坐标
*/
export const MUSEUM_POLYGON_POINTS = [
{ latitude: 22.693738, longitude: 114.362331 },
{ latitude: 22.69358, longitude: 114.362239 },
{ latitude: 22.693513, longitude: 114.362239 },
{ latitude: 22.691953, longitude: 114.362252 },
{ latitude: 22.692106, longitude: 114.365058 },
{ latitude: 22.692167, longitude: 114.365051 },
{ latitude: 22.693129, longitude: 114.365018 },
{ latitude: 22.693135, longitude: 114.364655 },
{ latitude: 22.693196, longitude: 114.363982 },
{ latitude: 22.693232, longitude: 114.363764 },
{ latitude: 22.693348, longitude: 114.363473 },
{ latitude: 22.693476, longitude: 114.36319 },
{ latitude: 22.693653, longitude: 114.362714 },
{ latitude: 22.693701, longitude: 114.362523 },
{ latitude: 22.693738, longitude: 114.362351 }
] as const
/**
* 地图默认缩放级别
*/
export const MAP_DEFAULT_SCALE = 17
/**
* 出行方式类型
*/
export type TravelMode = 'walking' | 'driving' | 'transit'
/**
* 出行方式配置
*/
export const TRAVEL_MODE_CONFIG = {
walking: {
type: 'walking',
label: '步行',
icon: '🚶'
},
driving: {
type: 'driving',
label: '驾车',
icon: '🚗'
},
transit: {
type: 'transit',
label: '公交',
icon: '🚌'
}
} as const
export type MuseumLocation = typeof MUSEUM_LOCATION
export type MuseumEntranceLocation = typeof MUSEUM_ENTRANCE_LOCATION