41 lines
1.4 KiB
TypeScript
41 lines
1.4 KiB
TypeScript
import { ConfigService } from '@nestjs/config';
|
|
import { Repository, DataSource } from 'typeorm';
|
|
import { RoadSegmentStat } from './road-stat.entity';
|
|
import { TrafficGridService } from './traffic-grid.service';
|
|
import { GeocodingService } from '../geocoding/geocoding.service';
|
|
import { RedisService } from '../common/redis.service';
|
|
export declare class MapsService {
|
|
private configService;
|
|
private roadStatRepo;
|
|
private trafficGrid;
|
|
private geocodingService;
|
|
private dataSource;
|
|
private redisService;
|
|
private readonly graphHopperUrl;
|
|
constructor(configService: ConfigService, roadStatRepo: Repository<RoadSegmentStat>, trafficGrid: TrafficGridService, geocodingService: GeocodingService, dataSource: DataSource, redisService: RedisService);
|
|
requestRoutingSync(): Promise<{
|
|
success: boolean;
|
|
message: string;
|
|
}>;
|
|
getRoute(waypoints: [number, number][], profile?: string, steps?: boolean, locale?: string, alternatives?: boolean): Promise<{
|
|
routeName: any;
|
|
tags: any;
|
|
distance: any;
|
|
duration: any;
|
|
trafficFactor: number;
|
|
startName: string;
|
|
endName: string;
|
|
points: any;
|
|
bbox: any;
|
|
instructions: any;
|
|
alternatives: any;
|
|
}>;
|
|
private getRouteName;
|
|
private decodePolyline;
|
|
getMapConfig(): Promise<{
|
|
center: number[];
|
|
zoom: number;
|
|
tileServerUrl: any;
|
|
}>;
|
|
}
|