UNPKG

react-native-yamap-plus

Version:

Yandex MapKit for React Native

10 lines (8 loc) 507 B
import NativeTransportModule from '../spec/NativeTransportModule'; import {ALL_MASSTRANSIT_VEHICLES, Point} from "../interfaces"; export const Transport = { findRoutes: NativeTransportModule.findRoutes, findMasstransitRoutes: (points: Point[]) => NativeTransportModule.findRoutes(points, ALL_MASSTRANSIT_VEHICLES), findPedestrianRoutes: (points: Point[]) => NativeTransportModule.findRoutes(points, []), findDrivingRoutes: (points: Point[]) => NativeTransportModule.findRoutes(points, ['car']), };