improve map
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 5m38s
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 5m38s
This commit is contained in:
parent
bb1ac27ea6
commit
5f12042f2f
3 changed files with 18 additions and 6 deletions
|
|
@ -99,10 +99,17 @@ pub struct StopSearchResults {
|
|||
pub results: Vec<Stop>
|
||||
}
|
||||
|
||||
pub struct MapItem {
|
||||
pub lat: f64,
|
||||
pub lng: f64,
|
||||
pub route_id: String,
|
||||
pub headsign: String,
|
||||
}
|
||||
|
||||
#[derive(askama::Template)]
|
||||
#[template(path = "map.html")]
|
||||
pub struct MapTemplate {
|
||||
pub locations: Vec<(f64,f64, String)>
|
||||
pub locations: Vec<MapItem>
|
||||
}
|
||||
|
||||
pub fn build_timetables(directions: Vec<Direction>, trips: Vec<Trip>) -> Vec<TimetableDirection> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue