Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/kerriestauffer/indiv-berner…
…-rundgaenge into backend-endpoints-alexis
- Loading branch information
Showing
14 changed files
with
215 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export const environment = { | ||
osrm_url:'http://router.project-osrm.org' | ||
base_url:'http://router.project-osrm.org' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,25 @@ | ||
export class RouteDto{ | ||
|
||
} | ||
interface Waypoints { | ||
hint: string; | ||
distance: number; | ||
name: string; | ||
location: Array<number>; | ||
} | ||
|
||
interface Routes { | ||
geometry: Geometry; | ||
weight_name: string; | ||
weight: number; | ||
duration: number; | ||
distance: number; | ||
} | ||
|
||
interface Geometry { | ||
coordinates: Array<Array<number>>; | ||
type: string; | ||
} | ||
|
||
|
||
interface Route { | ||
routes: Array<Routes>; | ||
waypoints: Array<Waypoints>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
.main-wrapper { | ||
padding: 2rem; | ||
height: 100%; | ||
background-color: #d3edf8; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
<div id="map_page"> | ||
<div><a href="/">Home</a></div> | ||
<div id=""> | ||
<div id="container"> | ||
<div id="map"></div> | ||
<div> | ||
<div id="map_page"> | ||
<div><a href="/">Home</a></div> | ||
<div id="map-infos"> | ||
<div id="container"> | ||
<div id="map"></div> | ||
</div> | ||
|
||
<div id="route-info"> | ||
<h3>Ausgewählte Sehenswürdigkeiten</h3> | ||
<ng-container *ngFor="let point of waypoints" | ||
><div> | ||
<p>{{ point.name }}</p> | ||
</div></ng-container | ||
> | ||
</div> | ||
</div> | ||
<div></div> | ||
</div> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,26 @@ | ||
#map { | ||
height: 75vh; | ||
width: 100%; | ||
max-width: 1000px; | ||
max-width: 1400px; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
@media screen and (max-width: 600px) { | ||
height: 50vh; | ||
} | ||
} | ||
|
||
#route-info { | ||
background-color: white; | ||
padding: 1em; | ||
} | ||
|
||
#map-infos { | ||
display: flex; | ||
@media screen and (max-width: 600px) { | ||
flex-direction: column; | ||
} | ||
} | ||
|
||
#container { | ||
width: 100%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters