This is sample app to demonstrate the plotting of various points on the Map and filter specific informations via charts. Data converted and stored in normalised format to provide filtering efficiently on the front end side. The demo app works for a specific CSV file format to get meaningful information of rides.
- Upload CSV containing data of travel between two location points (demo file to be uploaded).
- Once the data is uploaded, all booking locations are displayed in Map as clustures.
- Below the map are some story charts indicating some insights from the given data.
- Click on the chart values to filter the plotting on the map.
- Click the button on top right to reset the filters and go back to ploting of all points
Currently user can see filters for
- What type travel plans are booked by users
- What are the different different packages that the users are using the most
- Please use
Safari
orFirefox
For best results for plotting almost 50k points on the map using the above library. Current version of chrome has some issue in plot the markers for large numbers Leaflet/Leaflet.markercluster#951 - No loader shown if big csv file is loaded
This project uses a number of open source projects to work properly:
- ReactJS - A JavaScript library for building user interfaces
- Redux - Official React bindings for Redux
- Leaflet - Library for mobile-friendly interactive maps
- Leaflet.markercluster - Marker Clustering plugin for Leaflet. It allows a meaningful way to plot huge amount of markers on the map.
This project requires Node.js v10+ to run.
git clone https://github.com/Rinkuk1993/interactiveMapDemo.git
Install the dependencies and devDependencies and start the server.
$ cd interactiveMapDemo
$ npm install
or
$ cd interactiveMapDemo
$ yarn
Open your favorite Terminal and run these commands to run.
npm start
For production release
npm run build
- Adding more filters
- To show where more cancellations are happening
- When is the peak time of booking
- Which are the top 10 users booking frequently so any coupons / discount can be provided
- Add loader after uploding big CSV file
- Upload demo CSV to git