MATLAB code analyzing the dataset and generating the mask.
Metro.js is for adding waypoints and calling Google Maps API to provide new route.
THRESHOLD and WAYMAX are set as global variables, with browsers' integrated debugging tools these values can be changed.
map.jsp is for interactions, specifically for setting start and end and showing the result of navigation.
- Run ReseauTraffic2Station.m to convert original JSON to mat
- Run Analyse.m to analyse the original data
- Run TrafficMask.m to generate the mask
-
Install JDK 13 - https://www.oracle.com/technetwork/java/javase/downloads/jdk13-downloads-5672538.html
-
Install Eclipse - https://www.eclipse.org/downloads/download.php?file=/oomph/epp/2019-09/R/eclipse-inst-win64.exe
-
Install Tomcat 9 - https://www-eu.apache.org/dist/tomcat/tomcat-9/v9.0.27/bin/apache-tomcat-9.0.27-windows-x64.zip
-
Eclipse - Create a Dynamic Web Project with Apache Tomcat v9.0 as Target Runtime
-
Copy /src and /WebContent to the project folder
-
Eclipse - Refresh the Project
-
Eclipse - Create a new server - Tomcat v9.0 Server - Next - Configure the project on the server - Finish
-
Eclipse - Servers - Modify the server ports if necessary
-
Eclipse - Run [ProjectName]/WebContent/map.jsp using the Tomcat v9.0 Server at localhost
-
Chrome (or another browser) - http://localhost:[PortNumber]/[ProjectName]/map.jsp (e.g. http://localhost:8086/Navigation/map.jsp)
-
Chrome (or another browser) - F12 to use developer tools - Console
Input THRESHOLD = [0-1] (e.g. THRESHOLD = 0.618) to specify the threshold used.
Input WAYMAX = [1-INF] (e.g. WAYMAX = 10) to specify the maximum number of waypoints.
-
Chrome (or another browser) - Upper Right
Source - Input where to start with auto complete (e.g. Notre-Dame-de-Lorette)
Destination - Input where to end with auto complete (e.g. Cité de la musique)
The ideal route will be produced.