-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(directions): added possibility to toggle between two routing sou…
…rces (#1644)
- Loading branch information
Showing
19 changed files
with
299 additions
and
75 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
10 changes: 7 additions & 3 deletions
10
packages/geo/src/lib/directions/directions-sources/directions-source.ts
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,12 +1,16 @@ | ||
import { Position } from 'geojson'; | ||
import { Observable } from 'rxjs'; | ||
|
||
import { Direction, DirectionOptions } from '../shared/directions.interface'; | ||
import { BaseDirectionsSourceOptionsProfile } from './directions-source.interface'; | ||
|
||
export abstract class DirectionsSource { | ||
abstract enabled: boolean; | ||
abstract getName(): string; | ||
abstract profiles: BaseDirectionsSourceOptionsProfile[]; | ||
abstract getSourceName(): string; | ||
abstract getEnabledProfile(): BaseDirectionsSourceOptionsProfile; | ||
abstract getProfileWithAuthorization(): BaseDirectionsSourceOptionsProfile; | ||
abstract route( | ||
coordinates: [number, number][], | ||
coordinates: Position[], | ||
directionsOptions: DirectionOptions | ||
): Observable<Direction[]>; | ||
} |
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
Oops, something went wrong.