Files
maps-saas/apps/api/dist/maps/maps.service.d.ts
T

26 lines
882 B
TypeScript

import { ConfigService } from '@nestjs/config';
import { Repository, DataSource } from 'typeorm';
import { RoadSegmentStat } from './road-stat.entity';
import { RedisService } from '../common/redis.service';
export declare class MapsService {
private configService;
private roadStatRepo;
private dataSource;
private redisService;
private readonly graphHopperUrl;
private readonly TRAFFIC_CACHE_KEY;
constructor(configService: ConfigService, roadStatRepo: Repository<RoadSegmentStat>, dataSource: DataSource, redisService: RedisService);
getRoute(from: [number, number], to: [number, number]): Promise<{
distance: any;
duration: number;
points: any;
bbox: any;
congestionAware: boolean;
}>;
getMapConfig(): Promise<{
center: number[];
zoom: number;
tileServerUrl: any;
}>;
}