Web and Mobile AppsWeb application
Campus Navigator: an Interactive Campus Map with Route Finding
A Laravel web app in which staff draw a campus on a map (places, junctions, paths, site plans) and visitors get the shortest walking route between any two places.
- TypeWeb application
- RoleTeam of two: I built the map editor, the data model, the route finding and the public map; a teammate added sign-in
- ClientA university IT centre (summer internship, 2025)
- WhenJul 2025 – Aug 2025
- 5map tables in the database
- 10JSON endpoints: 8 for the editor, 2 public
- 4campus areas, each with its own map
- 2,200lines of map JavaScript in the 2025 version

Highlights
- A map editor for staff: search for a place, draw the campus boundary, drop named markers and junction points, join them with roads, and lay a site-plan image over the map
- Shortest-path routing on the server with Dijkstra's algorithm, over roads weighted by their length in metres
- Visitors pick two places or start from their own position; the route is drawn on a Leaflet map with distance and walking time, on a desktop or a phone
- Four campus areas (a main campus and three dormitory areas), each with its own points, roads, overlays and boundary behind the same pages
- Built in 2025 in a team of two (a teammate added sign-in); in November 2026 I restyled the interface, gave it its own logo and fixed six defects for this portfolio
The problem
A public map shows a university campus as an outline. It does not know which building is which, where the footpaths run, or how to get from a gate to a lecture hall, so new students and visitors have to ask.
The Campus Navigator is built so that staff can describe the campus themselves on top of an ordinary map, and anyone with a browser can then look up a place and get a walking route to it. Using the map needs no GIS software and no account.
Approach
The app has two faces on one Laravel code base. The editor, for signed-in admins, is a Leaflet map with a tool panel: search for a place, draw a boundary around the campus, drop markers (a name, a description, an optional photo) and plain junction points, join any two points with a road, and lay an image such as a site plan over the map by pinning its four corners. The public map shows the same data read-only, with lists for the start and the destination.
The campus is stored as a graph in five tables. Points are the nodes; roads are two-way links, kept once per pair of points, and their length in metres is worked out from the coordinates (the haversine formula) when the road is saved. Every row carries the code of its campus area, so the main campus and the three dormitory areas each have their own map behind the same pages and endpoints.
Routes are computed on the server with Dijkstra's shortest-path algorithm over those roads. A visitor picks two places, or lets the browser share its position, which is matched to the nearest point. The answer comes back as JSON and is drawn as a line with the distance and a walking time. On a phone the controls fold into a sheet at the bottom so the map stays visible.
It was a team of two. I wrote the map side: the schema, the controllers, the editor and the public map. My teammate added sign-in with Laravel Breeze and the admin check that guards the editor.
Results
- A working editor and public map: 2 pages and 10 JSON endpoints (8 behind the admin check, 2 public)
- 5 map tables built by one migration, with 4 campus areas set up by default
- Shortest-path routing with Dijkstra's algorithm, from a chosen place or from the visitor's own position
- Image uploads for marker photos (up to 2 MB) and map overlays (up to 10 MB), checked for type and size
- About 2,200 lines of JavaScript and 1,085 lines of PHP controllers for the map, in 9 commits between 23 July and 11 August 2025
The application itself (data model, route finding, admin tools and sign-in) is the 2025 internship work; the look shown here, the Campus Navigator logo, the removal of the university's branding and six defect fixes were done in November 2026, after the internship, for this portfolio. The screenshots come from that version running locally with a made-up demo campus.
What this means for you
A map-based tool does not need a GIS team. With a plain map as the background and a small editor, the people who know a site can keep its data up to date themselves. The same pattern fits a hospital, a factory site or an exhibition: points, the paths between them, and a route search on the server so that the phone only has to draw a line.
Tools
- PHP
- Laravel 12
- Blade
- Eloquent
- JavaScript
- Leaflet
- SQLite
- Laravel Breeze
- Tailwind CSS
Figures
Select a figure to enlarge it.

How it works
An admin draws the campus, the app stores it as a graph of points and roads, and a visitor asks for a route across it.

A route on the public map
The shortest path from South Gate to East Parking, with its distance, walking time and number of waypoints. The campus, its places and the plan under them are made up for the demo.

The map editor
The admin view of the same area: the boundary, markers, junction points (hops) and roads, with the tool panel on the right.

The data model
The five map tables and how they relate: every row belongs to a campus area, and a road joins two points and carries its length.

How a route is found
Dijkstra's algorithm on the server, step by step, with the demo campus as the example: 7 waypoints and 831 metres from South Gate to East Parking.

A place's details
Each marker can carry a description and a photo; from here it can be set as the start or the destination. The picture is a demo drawing.

All places in an area
Every place of the area as a card, with its description and the same three actions: details, start here, go here.

Adding a marker
Choose “Add marker”, click the map, and give the place a name and a description. The form is not submitted in this picture.

An image laid over the map
A second area with an uploaded site plan pinned by its four corners, beside the road, overlay and route-test tools. The plan is a made-up drawing.

A route in a second area
Each area has its own points and roads. Here a route runs across the demo site plan of a dormitory area.

On a phone: the route
When a route is found the controls fold away, and their header keeps the summary: from, to, distance and time.

On a phone: the controls
The same panel opened as a sheet at the bottom, with the route's figures first and the map still visible above.

On a phone: a place's details
The details window at phone width, with full-width buttons.