89
src/data/arrivalSearchTargets.ts
Normal file
89
src/data/arrivalSearchTargets.ts
Normal file
@@ -0,0 +1,89 @@
|
||||
export type ArrivalTargetGroup = 'venue' | 'transit' | 'realtime'
|
||||
export type ArrivalRealtimeKind = 'bus' | 'parking'
|
||||
|
||||
export interface ArrivalSearchTarget {
|
||||
id: string
|
||||
title: string
|
||||
keyword: string
|
||||
region: string
|
||||
group: ArrivalTargetGroup
|
||||
realtimeKind?: ArrivalRealtimeKind
|
||||
}
|
||||
|
||||
export const ARRIVAL_SEARCH_REGION = '深圳市'
|
||||
|
||||
export const ARRIVAL_SEARCH_TARGETS: ArrivalSearchTarget[] = [
|
||||
{
|
||||
id: 'shenzhen-natural-history-museum',
|
||||
title: '深圳自然博物馆',
|
||||
keyword: '深圳自然博物馆',
|
||||
region: ARRIVAL_SEARCH_REGION,
|
||||
group: 'venue'
|
||||
},
|
||||
{
|
||||
id: 'shabo-station-exit-d',
|
||||
title: '沙壆站 D口',
|
||||
keyword: '沙壆站D口',
|
||||
region: ARRIVAL_SEARCH_REGION,
|
||||
group: 'transit'
|
||||
},
|
||||
{
|
||||
id: 'natural-museum-west-station',
|
||||
title: '自然博物馆西站',
|
||||
keyword: '自然博物馆西站',
|
||||
region: ARRIVAL_SEARCH_REGION,
|
||||
group: 'transit'
|
||||
},
|
||||
{
|
||||
id: 'museum-bus-stop',
|
||||
title: '深圳自然博物馆 公交站',
|
||||
keyword: '深圳自然博物馆 公交站',
|
||||
region: ARRIVAL_SEARCH_REGION,
|
||||
group: 'realtime',
|
||||
realtimeKind: 'bus'
|
||||
},
|
||||
{
|
||||
id: 'shabo-metro-bus-stop',
|
||||
title: '沙壆地铁站 公交站',
|
||||
keyword: '沙壆地铁站 公交站',
|
||||
region: ARRIVAL_SEARCH_REGION,
|
||||
group: 'realtime',
|
||||
realtimeKind: 'bus'
|
||||
},
|
||||
{
|
||||
id: 'natural-museum-west-bus-stop',
|
||||
title: '自然博物馆西 公交站',
|
||||
keyword: '自然博物馆西 公交站',
|
||||
region: ARRIVAL_SEARCH_REGION,
|
||||
group: 'realtime',
|
||||
realtimeKind: 'bus'
|
||||
},
|
||||
{
|
||||
id: 'museum-parking',
|
||||
title: '深圳自然博物馆 停车场',
|
||||
keyword: '深圳自然博物馆 停车场',
|
||||
region: ARRIVAL_SEARCH_REGION,
|
||||
group: 'realtime',
|
||||
realtimeKind: 'parking'
|
||||
},
|
||||
{
|
||||
id: 'pingshan-cultural-cluster-parking',
|
||||
title: '坪山文化聚落 停车场',
|
||||
keyword: '坪山文化聚落 停车场',
|
||||
region: ARRIVAL_SEARCH_REGION,
|
||||
group: 'realtime',
|
||||
realtimeKind: 'parking'
|
||||
},
|
||||
{
|
||||
id: 'yanzi-lake-area-parking',
|
||||
title: '燕子湖片区 停车场',
|
||||
keyword: '燕子湖片区 停车场',
|
||||
region: ARRIVAL_SEARCH_REGION,
|
||||
group: 'realtime',
|
||||
realtimeKind: 'parking'
|
||||
}
|
||||
]
|
||||
|
||||
export const ARRIVAL_VENUE_TARGETS = ARRIVAL_SEARCH_TARGETS.filter((target) => target.group === 'venue')
|
||||
export const ARRIVAL_TRANSIT_TARGETS = ARRIVAL_SEARCH_TARGETS.filter((target) => target.group === 'transit')
|
||||
export const ARRIVAL_REALTIME_TARGETS = ARRIVAL_SEARCH_TARGETS.filter((target) => target.group === 'realtime')
|
||||
Reference in New Issue
Block a user