The Pedestrian Micro-Mobility Management Platform is a web-based application designed to tackle urban micro-mobility challenges. Leveraging advanced geospatial technologies and data analytics, this platform provides comprehensive tools for planning, monitoring, and managing pedestrian traffic and micro-mobility devices in urban environments.
- Clone the Repository
git clone https://git.cs.bham.ac.uk/projects-2023-24/aam119.git
- Navigate to the backend directory and install dependencies:
cd cit-backend pip install -r requirements.txt
- Run migrations and start the Django server:
python manage.py makemigrations python manage.py migrate python manage.py runserver
- Navigate to the frontend directory and install dependencies:
cd ../vue-frontend npm install
- Start the Vue.js server:
npm run serve
GeoServer plays a crucial role in managing and serving geospatial data for the platform. Follow these steps to install and configure GeoServer:
-
Download GeoServer: Visit the GeoServer official website and download the appropriate version for your operating system.
-
Install GeoServer:
- For Windows, run the installer and follow the on-screen instructions.
- For Linux/Mac, extract the downloaded archive and move it to a preferred directory.
-
Start GeoServer:
- Navigate to the GeoServer directory.
- For Windows, run
startup.bat
located in thebin
folder. - For Linux/Mac, execute
sh startup.sh
from thebin
directory.
-
Access GeoServer: Open a web browser and go to
http://localhost:"chosen port in installation"/geoserver
. The default port is8080
, username isadmin
and password isgeoserver
.
-
Shapefiles: The Shape files are stored at
Shape_files
directory. Copy the shapefiles to a preferred directory. -
Log in to GeoServer Web Admin Panel: Access the GeoServer web admin panel by navigating to
http://localhost:"chosen port in installation"/geoserver/web/
and log in. -
Create a Workspace:
- Go to
Data
>Workspaces
>Add new workspace
. - Fill in the
Name
andNamespace URI
, then clickSave
.
- Go to
-
Create a Store:
- Navigate to
Data
>Stores
>Add new Store
. - Choose
Directory of spatial files (shapefiles)
as the Data Source. - Select the workspace you created earlier.
- Provide a
Data Source Name
andDescription
. - Click
Browse
next toConnection Parameters
>URL
, and select your directory containing the shapefiles. - Click
Save
.
- Navigate to
-
Publish the Layer:
- Navigate to
Data
>Layers
. - Click
Add a new layer
. - Select the store you created earlier.
- GeoServer will recognize and list all the shapefiles in the directory as new layers.
- Click
Publish
next to each layer you wish to configure. - Fill in the necessary details such as
Title
,Abstract
, and ensure theBounding Boxes
are correctly set. - Click Save.
- Navigate to
-
Access Your Layer:
- Go to
Layer Preview
, find your layer, and choose a format to view it (e.g., OpenLayers, GeoJSON).
- Go to
- Update the Vue.js Configuration:
- Navigate
vue-frontend
directory. - Navigate to
src
>views
>Mon_maps.vue
andPlan_maps.vue
. - Update the
url
in themap
object to match your GeoServer configuration. - Update the
workspace
andlayer name
to match the workspace and layer you created in GeoServer by looking at comments abovethis.wmsLayers
method in bothPlan_maps.vue
andMon_maps.vue
.
- Navigate
- For Planning feature, if the user is not located in stockholm, Sweden, please use a VPN to access the feature. The feature is only available for Stockholm.