diff --git a/src/app/osrm.service.ts b/src/app/osrm.service.ts index f6b6a01..cc7d6f2 100644 --- a/src/app/osrm.service.ts +++ b/src/app/osrm.service.ts @@ -13,7 +13,7 @@ export class OsrmService{ // sends a query request to Osrm and gets response (http://project-osrm.org/docs/v5.24.0/api/?language=cURL#table-service) sendQueryRequest(longFrom: number, latFrom: number, longTo: number, latTo: number): Observable { - console.log(longTo) + console.log(latTo) console.log("https://routing.openstreetmap.de/routed-bike/route/v1/driving/" + longFrom + "," + latFrom + ";" + longTo + "," + latTo + "?overview=full&alternatives=false&steps=true&geometries=geojson") return this.http.get("https://routing.openstreetmap.de/routed-bike/route/v1/driving/" + longFrom + "," + latFrom + ";" + longTo + "," + latTo + "?overview=full&alternatives=false&steps=true&geometries=geojson"); } diff --git a/src/app/photon.service.ts b/src/app/photon.service.ts index 705fadc..6b8f366 100644 --- a/src/app/photon.service.ts +++ b/src/app/photon.service.ts @@ -12,7 +12,7 @@ export class PhotonService{ constructor(private http: HttpClient) { } // sends a query request to Photon and gets response (https://photon.komoot.io/) - sendQueryRequest(q: string): Observable { - return this.http.get("https://photon.komoot.io/api/?q=" + q + "&limit=10"); + sendQueryRequest(q: string): Observable { + return this.http.get("https://photon.komoot.io/api/?q=" + q + "&limit=10&zoom=12"); } -} \ No newline at end of file +} diff --git a/src/app/search/search.component.ts b/src/app/search/search.component.ts index b296ab4..eaef405 100644 --- a/src/app/search/search.component.ts +++ b/src/app/search/search.component.ts @@ -106,8 +106,8 @@ export class SearchComponent{ } getRoute(): void{ - console.log("getroute"); - this.osrmService.sendQueryRequest(this.longFrom, this.latFrom, this.longTo, this.latFrom) + + this.osrmService.sendQueryRequest(this.longFrom, this.latFrom, this.longTo, this.latTo) .subscribe((response: Osrm) => { console.log(response); this.appComponent.drawPath(response);