mirror of
https://gitlab.com/mobicoop/v3/service/matcher.git
synced 2025-12-31 02:42:41 +00:00
refactor to ddh, first commit
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import { Coordinate } from '../entities/coordinate';
|
||||
|
||||
export interface IEncodeDirection {
|
||||
encode(coordinates: Coordinate[]): string;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
export interface IGeodesic {
|
||||
inverse(
|
||||
lon1: number,
|
||||
lat1: number,
|
||||
lon2: number,
|
||||
lat2: number,
|
||||
): {
|
||||
azimuth: number;
|
||||
distance: number;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import { IGeorouter } from './georouter.interface';
|
||||
|
||||
export interface ICreateGeorouter {
|
||||
create(type: string, url: string): IGeorouter;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
import { GeorouterSettings } from '../types/georouter-settings.type';
|
||||
import { NamedRoute } from '../types/named-route';
|
||||
import { Path } from '../types/path.type';
|
||||
|
||||
export interface IGeorouter {
|
||||
route(paths: Path[], settings: GeorouterSettings): Promise<NamedRoute[]>;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export interface IFindTimezone {
|
||||
timezones(lon: number, lat: number): string[];
|
||||
}
|
||||
Reference in New Issue
Block a user