Analyze the Taxicab GPS data to count on each taxi’s influence on the traffic and use different colors to visualize the degree and plot the road system on map
#Get the JSON file for plotting
- Get the map GPS data for the intereted city(Shenzhen) from the OpenStreetMap by defining the bounding box of the city and export into a xml file.
- Get the traffic GPS data and prepare it into a csv file.
- Run the DrawMap.ipynb to preprocess the data and the output is a JSON file for plotting the map.
- Install NODEJS first, select the version that matches your environment, then go to the directory of the project.
- Install dependencies, you should finish this step without any issue
npm install- Start the node server, wait until see "Example app listening on port 3000!" in your console.
node server- Hit localhost:3000
When you go to the localhost:3000, the data begins loading and wait until map shows. It may take like 1 minitues.
Click the Export Button. Since transform a svg to png also requires a long time, a page that tells you the data is processing will appear. Wait until this page disappear. The old svg will be replaced by a png.
Then right click the page and select "save image as" and you will get the map!

You can get a sample image here Sample Image