Point
ARKit aligns the camera to gravity and true north. Your GPS position and the direction you face place labels on the buildings and ships around you, and they stay put as you pan.
iPhone · AR · Open data
Spectavi labels the skyline and the sea through your camera. Tap a tower or a ship and it tells you what it is, how far away it is, and why it thinks so, using free open map data and live AIS ship positions.
Concept mockup on a real photo of Cebu City. Device screenshots are coming from field testing.
How it works
ARKit aligns the camera to gravity and true north. Your GPS position and the direction you face place labels on the buildings and ships around you, and they stay put as you pan.
Tap anything. The server casts a fan of sight lines from your position through PostGIS building footprints and finds what is actually in view, looking over low roofs to the tower behind.
Get the top matches with a confidence score, distance and color band. Ships come with live course and speed. If the compass is off, one tap on a known landmark fixes it.
Screens
Mockups of the app's SwiftUI layout over real photos of Cebu, Philippines, the first test city. Device screenshots will replace them after field testing.
Engineering
The hard part is not drawing labels. It is deciding which of a hundred thousand footprints you are actually looking at, from a phone whose compass can be 15 degrees off.
Each tap sends position, heading, pitch, heading uncertainty and eye height. The server casts a fan of 9 rays across ±2σ of the heading and asks PostGIS for every footprint each ray crosses and the distance where it enters. The building you are standing in is ignored.
Along each ray the first building tall enough to block the sight line wins, with earth curvature and refraction included, so a 13th-floor balcony looks over low roofs to the tower behind. Rays vote with Gaussian weights, and the top three come back with a confidence.
ARKit takes north from the compass once, and phone compasses are often 5 to 15 degrees off, worse near steel and concrete. Apple's Location Anchors would correct this but do not cover many countries.
Instead, you center a landmark you know and tap Set. The server compares the true bearing to the measured one and returns an offset that shifts every label into place. No visual positioning coverage required.
Spectavi grew out of a 2022 patent-pending heads-up display I designed for ship traffic, which read AIS from a radio receiver. Ships now come from Open Waters' free online AIS stream, parsed and stored in PostGIS.
The client dead-reckons each ship along its reported course and speed between refreshes, so labels glide instead of jump. A local receiver can still plug in as another source.
Building footprints, heights and floors come from Overture Maps (OpenStreetMap, Microsoft and Google ML footprints). Unnamed footprints get names by matching Overture place points inside them.
On Mactan Island in the Philippines that took named buildings from 641 to 1,640 out of 147,040 footprints, and to 32% of buildings over 1,000 m². Regions import on demand.
The geodesy, AR-frame math, calibration and label layout live in SpectaviKit, a Swift package with no UIKit or ARKit imports, so swift test runs on Linux in CI. The server's ranking logic is pure TypeScript with unit tests, plus PostGIS integration tests against a real database service container.
# one tap, one answer
curl -s $API/identify \
-H 'content-type: application/json' \
-d '{"lat":10.3052,"lon":124.0101,
"headingDeg":60,"eyeHeightM":30}'
# → { buildings: [ { name, distanceM,
# confidence, band: "red" } ], ships: [...] }
Tech
Used daily for design reviews, test generation, refactors and research, with every change reviewed and tested.
About
In 2022 I designed an augmented-reality heads-up display for ship traffic: it read AIS broadcasts from a radio receiver and overlaid each vessel on a live view of the water, colored by distance. The patent application is pending and I own the rights.
Spectavi is the next version. It drops the radio hardware, adds buildings, and runs on a phone anyone already has. The name is Latin for "I have seen."
It is also a portfolio project: a real product with a spatial database, a streaming data feed, native AR, and the testing, CI and cloud deployment to back it up, built end to end by one developer.
More projects
Designed, built and deployed by me, each on its own subdomain.
Résumé tailor: matches a résumé to any job posting, shows missing keywords, scores it like an applicant tracking system and exports a PDF. Runs entirely in the browser.
eleve.cyclebyte.dev ↗A common operating picture for field research: spin up temporary IoT environments, watch devices live and turn telemetry into results. Open source.
conspectus.cyclebyte.dev ↗A food portion app. In progress.
portions.cyclebyte.dev ↗Backgammon against 100 AI opponents with styles drawn from real matches, plus an engine lab and match replays.
matchroom.cyclebyte.dev ↗Hire me
I'm Baseem, a senior software engineer with 10 years of experience in JavaScript, Node.js, React, Postgres and Bash, with hands-on Azure experience. I build products end to end, from the database schema to the cloud deployment, and I'm quick on new platforms, like Swift and ARKit for this app. I build every day with AI tools including Claude, Codex and Gemini.