Import initial : code en production sur Hetzner
This commit is contained in:
commit
cf6ee64e31
43 changed files with 14404 additions and 0 deletions
36
shared/types.ts
Normal file
36
shared/types.ts
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
/** Un lieu résolu en coordonnées, tel que renvoyé par le géocodeur. */
|
||||
export interface Place {
|
||||
label: string
|
||||
lat: number
|
||||
lon: number
|
||||
}
|
||||
|
||||
/** Coordonnée au format GeoJSON : [longitude, latitude]. */
|
||||
export type Coord = [number, number]
|
||||
|
||||
/** Un tronçon d'un trajet en transport en commun, ou un rabattement à pied. */
|
||||
export interface Segment {
|
||||
/** Mode Transitous brut : SUBWAY, HIGHSPEED_RAIL, BUS, WALK... */
|
||||
mode: string
|
||||
/** Nom court affiché sur le véhicule : « M1 », « TGV 7204 », « 12 ». */
|
||||
line: string
|
||||
/** Libellé long, quand il apporte quelque chose : « METRO LIGNE 1 ». */
|
||||
lineLong?: string
|
||||
/** Exploitant commercial : ILEVIA, SNCF, FlixBus. */
|
||||
operator?: string
|
||||
operatorUrl?: string
|
||||
/** Couleur officielle de la ligne, telle que publiée dans le GTFS. */
|
||||
color?: string
|
||||
textColor?: string
|
||||
/** Direction affichée par le véhicule. */
|
||||
headsign?: string
|
||||
from: string
|
||||
to: string
|
||||
departure: string
|
||||
arrival: string
|
||||
durationMin: number
|
||||
/** true si l'horaire provient du temps réel et non du théorique. */
|
||||
realTime: boolean
|
||||
/** Tracé du tronçon, décodé et allégé. */
|
||||
geometry?: Coord[]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue