31 lines
1.0 KiB
TypeScript
31 lines
1.0 KiB
TypeScript
import { ConfigService } from '@nestjs/config';
|
|
import { Repository } from 'typeorm';
|
|
import { RoadSegmentStat } from './road-stat.entity';
|
|
import { TrafficGridService } from './traffic-grid.service';
|
|
import { GeocodingService } from '../geocoding/geocoding.service';
|
|
export declare class MapsService {
|
|
private configService;
|
|
private roadStatRepo;
|
|
private trafficGrid;
|
|
private geocodingService;
|
|
private readonly graphHopperUrl;
|
|
constructor(configService: ConfigService, roadStatRepo: Repository<RoadSegmentStat>, trafficGrid: TrafficGridService, geocodingService: GeocodingService);
|
|
getRoute(waypoints: [number, number][], profile?: string): Promise<{
|
|
distance: any;
|
|
duration: number;
|
|
trafficAwareDuration: number;
|
|
trafficFactor: number;
|
|
startName: string;
|
|
endName: string;
|
|
points: any;
|
|
bbox: any;
|
|
alternatives: any;
|
|
}>;
|
|
private decodePolyline;
|
|
getMapConfig(): Promise<{
|
|
center: number[];
|
|
zoom: number;
|
|
tileServerUrl: any;
|
|
}>;
|
|
}
|