Inspiration

Finding the right building is only half the trip.

At USC, a WebReg schedule gives you a code like "LAW 101" and nothing else. The next question is: Which floor is my classroom on, and how do I get there? A campus map can get you to the entrance, but students still have to figure out what comes next, sometimes with only a few minutes before class. It is hardest for transfers and spring admits, who arrive after the fall tours, and for anyone heading to a first club meeting they found on EngageSC.

We built Trojan Compass to connect those parts of the trip. We wanted students to move from exploring campus to finding a specific room, with an assistant that can turn a question into something useful on the map.

What it does

Trojan Compass is an interactive USC campus guide, available as a web app and a native iOS app, with explorable 3D building interiors built with AI from floor plans and construction layouts.

Our prototype currently includes TCC, DMC, and LAW, the buildings for which we could find public plans. We plan to add more buildings as additional plans become available.

Students can select a building, switch floors, search for rooms, and choose a starting point directly on the map. From there, they can request directions with stairs or elevator preferences and follow a route through the building with step-by-step instructions.

The AI assistant connects conversation to the map. A request such as:

"I'm at LAW 101. Take me to the CASA event using elevators."

resolves an event from our sample catalog to its room and generates a route from the stated starting point. A follow-up like "I also want to stop at a restroom on the way" adds the stop. Students can also use search and map controls directly.

Class and event listings in the prototype are sample records, and the generated interiors, routes, and accessibility information have not yet been verified.

How we built it

We built the web experience with Next.js, React, and TypeScript, using Three.js and React Three Fiber for the interior viewer. The campus overview uses saved USC map assets, while the viewer lets students explore the AI-generated interiors, highlight rooms, and follow routes across floors.

Our Node.js and Express backend handles building data, search, routing, and chat through a shared OpenAPI contract. The iOS app is written in Swift and SwiftUI and uses the same backend, so both clients return the same rooms and routes.

The OpenAI API translates natural-language requests into structured intent. Our backend then resolves locations against known records, calculates routes, and validates the actions sent to the map. The model interprets the request; the navigation services determine what the available data supports. The OpenAI key stays on the server and never reaches the browser.

Keeping those responsibilities separate helped us connect the assistant to the interface without making the model responsible for inventing locations or paths.

Challenges we ran into

The 3D viewer, search, and routing had to agree on building IDs, floors, and coordinates, so a point picked on the map meant the same place to every service.

We also had to handle ambiguous requests, missing starting locations, and responses that arrived after a student had already changed their selection.

Accomplishments we're proud of

We turned floor plans and construction layouts into explorable 3D interiors for three USC buildings, connecting them to room search and route visualization using AI.

We also connected conversational requests to visible results. Students can ask about a destination and see a room highlighted or a route drawn through the interior, then inspect and adjust the result using the map controls.

Behind that experience, shared interfaces and contract checks keep the web app, the iOS app, and the backend consistent.

What's next for Trojan Compass

We are proposing a pilot next semester, owned by USG with USC Facilities supplying approved floor plans. It needs three things: verified plans for a few high-traffic buildings beyond TCC, DMC, and LAW, class locations from WebReg, and event listings from EngageSC.

It needs no database, and hosting on Replit is free, so the only running cost is OpenAI usage: under a fifth of a cent per question, or about $15 a month for 10,000 questions. Success is one measure: did students reach their rooms on time?

Find your room. Explore your campus. Find your people.

Built With

Share this project:

Updates

Submission history