src/component/busMap.js
// Filter Vehicles based on selected routes
Filter Vehicles based on selected routes
Filter Vehicles based on selected routes
filterVehicleData(response, selectedRoutes) {
        let filteredData = response.filter((vehicleObj) => {
            return (selectedRoutes.indexOf(vehicleObj.routeTag) !== -1)
        })
        return filteredData
    }
filterVehicleData ( response , selectedRoutes ) { let filteredData = response . filter ( ( vehicleObj ) => { return ( selectedRoutes . indexOf ( vehicleObj . routeTag ) !== - 1 ) } ) return filteredData }
Filter Vehicles based on selected routes
Filter Vehicles based on selected routes