mappls-map-react-native
Version:
A Mappls GL react native module for creating custom maps
48 lines (46 loc) • 1.09 kB
text/typescript
export interface TripCostEstimationResponse {
hasTolls: boolean;
totalTolls: number;
locations: Array<MapplsLocation>;
departureTime: number;
currency: string;
country: string;
vehicleType: string;
totalTollCost: number;
url: string;
distance: number;
duration: number;
tolls: Array<CostEstimationTollDetail>;
fuelEfficiency: string;
totalFuelCost: number;
fuelPrice: number;
vehicleFuelType: string;
totalTripCostEstimate: number;
}
export interface MapplsLocation{
latitude: number;
longitude: number;
}
export interface CostEstimationTollDetail {
mapplsPin: string;
tollName: string;
latitude: number;
longitude: number;
node: number;
tollGrpId: number;
road: string;
roadType: string;
address: string;
state: string;
lanes: number;
agency: string;
type: string;
averageWaitTimeRange: number;
nodeIdx: number;
payment: Array<string>;
cost: number;
emergency: number;
amenities: Array<string>;
distance: number;
duration: number;
}