Waypoints is a self hosted travel tracking solution. It is an all in one solution to log trips and destinations. Waypoints helps you to visualize your travel providing a detailed map view of your past journeys. The data driven app collects information on the places you go and the routes you take to visualize and quantify your journeys around the world.
The main way to track travel is through the creation of trips and components:
Trips: Just that, representing a trip be it one night or 2 weeks. The trip stores the dates of travel.Nodes: These are the destinations of your trip, usually starting and ending with your home. These are the cities, campsites, wherever you would say you are going.Legs: These are the travel between your nodes: flights, road trips, etc.Stops: Stops allow you to track anywhere you want to remember. Be it the hotel you stayed in, a restaurant you stopped at along the way, etc. Stops are attached to either nodes or legs and are meant to be a journal of sorts. In settings, you can create your own list of categories to represent stops and assign an emoji to represent them on the map.
Nodes, Legs, and Stops are attached to places in Open Street Maps so that their coordinates can automatically be saved to contribute to the map of all your travels.
Photos can also be uploaded and are attached to Trips themselves or any of the other types. If you use Immich, you can link photos from your library instead of uploading them. The picker shows the photos taken during the trip and suggests the node, leg or stop each one belongs to, based on its date and location. Adventures can link Immich photos from their dates too, from the adventure's edit page.
Adventures:
Adventures are another way to track your journeys. They are similar in schema to stops but not associated. These are meant for your day trips, hikes, dives, anything special enough you want to track. They appear onside the map alongside the rest of your trips but don't contain the extra travel information.
Lists: Lists are like travel goals. They can be a list of specific locations, a list of states, or a list of months of travel, whatever you want to see as you track your travel. You can create a custom list by inputting a comma separated list. They can be matched to the countries, state, or location name from OSM. Regex matching allows for automatic matching. You can also manually check off something if it is not automatically matched to a travel component.
Travel Information: The database also stores additonal information about your legs. For car legs, you can automatically track the route outline and driving time using Open Route Service. For flights you can keep track of the airline and flight information, and fetch the path the plane actually flew from the OpenSky Network. Flights without a recorded path are drawn as great-circle arcs. Each flight can also store its aircraft: enter the tail number (registration) and Look up fills in the type and downloads a photo of that airframe (fetching the flown path does this automatically). More integrations coming.
View all of your trips on a single map. Here you can visualize your waypoints around the world. You can also view any single trip on a map. Switch the map to Airports visited (both ends of every flight, including hidden layover nodes) or Cities visited (every city you've had a node or stop in, grouped by the city itself even when the places have different OpenStreetMap ids) to see just those places. Selecting a trip under the map focuses it and fades every other trip. Lists with linked locations appear in the Lists… menu next to these views: every item is pinned at the list's own coordinates, and items you haven't visited yet are faded. Timeline replays your travel in the order it happened. Press Play and nodes, stops, legs and adventures are drawn one at a time at a steady pace (a set number of items per second, so long gaps between trips don't slow it down); legs grow along their route. The highlighted window on the timeline under the map is the period being shown: drag either end to change it, drag the middle to move it, or click a trip's colored bar to jump to that trip. Play replays whatever window is selected. Items with no date aren't shown.
Every flight you've logged, with totals (flights, miles, airlines, aircraft types, individual aircraft, airports). Browse by Aircraft types, Airlines, Aircraft (tail numbers) or a chronological Flights log. Selecting one highlights its flights on the map and lists them with their photos.
View an overview of your trips on the yearly calendar where you can easily see the days you have travelled. A montly view allows for more detailed display destinations and stops.
With the statistics view, you can see how many miles you have travelled on each transportation type, how many nights you have spent away from home, and track custom lists of travel goals.
Click Unique destinations to list every destination. Use Merge mode to combine duplicates: select destinations, press Merge, then keep one of them or search for a different OpenStreetMap place. Every node of the merged destinations takes that place's name, OSM details and coordinates, and leg endpoints and osm_id lists follow. Stored leg miles are not recalculated. Back up first, as a merge can't be undone.
On a list, Link Locations gives each item a map location (it never happens automatically). Every item without one is searched on OpenStreetMap and the first result is filled in; change or clear any row, then Save. Reopen it at any time to edit the locations. Searches run about one per second to respect Nominatim's usage policy, so long lists take a while. Date lists can't be linked.
Visited cities looks up which city each existing node and stop is in (new and edited places are looked up automatically when saved). Press Look up missing cities and watch each place get fixed in the log. Places with no city at that spot (rural stops, for example) are listed and skipped.
Backups of the database can be created in the settings menu. These backups can be downloaded and restored. Backing up of photos coming.
Waypoints runs in three docker containers.
cp docker-compose.yml.example docker-compose.yml
cp .env.example .envBoth copies are gitignored, so your changes stay local.
Set a strong POSTGRES_PASSWORD and, optionally, your ORS_API_KEY for driving routes. All settings and secrets live here; docker-compose.yml reads them automatically. Change paths or ports in docker-compose.yml if needed.
docker compose up -d --buildThe web UI is served on http://localhost:3000 (or FRONTEND_PORT). The frontend is built into an nginx image, so after updating WayPoints run the same command again to rebuild it.
For frontend development with hot reload, run the Vite dev server in place of the built frontend: docker compose stop frontend && docker compose --profile dev up -d frontend-dev.
If your docker-compose.yml predates the production frontend, its frontend service still runs the Vite dev server (image: node:..., command: npm ci && npm start). Replace that service with the frontend and frontend-dev services from docker-compose.yml.example, then run docker compose up -d --build.
Older versions hardcoded the database credentials (user / password) in docker-compose.yml. An existing db_data/ directory keeps the credentials it was created with, so set POSTGRES_USER and POSTGRES_PASSWORD in .env to those values. Otherwise, change the password inside Postgres first. The OpenRouteService key is no longer stored in the browser. Move it to ORS_API_KEY in .env.
WayPoints has no user authentication. Anyone who can reach the web UI can view and edit all data, and can create, download and restore database backups. Restoring runs SQL against the database. Run it only on a trusted network, behind a VPN, or behind a reverse proxy that adds authentication. Do not expose port 3000 directly to the internet. The frontend only answers to known hostnames, to block DNS-rebinding attacks from other web pages. If you reach WayPoints through a hostname (for example via a reverse proxy), add that hostname to FRONTEND_ALLOWED_HOSTS in .env.
datbase container
└── PostgreSQL
backend
└── FastAPI
frontend
└── React app (Vite build, served by nginx)
├── Leaflet Integration (OpenStreetMap tiles, no API key needed)
└── Styled with styled-components
Integrations:
- Nominatim: API used to search for places in Open Street Map.
- Open Route Service: Automatically fetch driving path and distance between locations in a leg. Set
ORS_API_KEYin.env. Requests are proxied through the backend, so the key never reaches the browser. - OpenSky Network: Fetch the actual flown path of a flight from its flight number and date. Create a free OpenSky account, add an API client under Account, and set
OPENSKY_CLIENT_IDandOPENSKY_CLIENT_SECRETin.env. OpenSky publishes flights the day after they fly and keeps tracks for about 30 days, so fetch the path within that window. The path is then stored in WayPoints. Flight numbers are matched to radio callsigns with adsbdb and airport codes with hexdb.io, which need no key. All requests go through the backend. - Aircraft details: tail numbers are looked up with adsbdb (falling back to hexdb.io and the open tar1090-db aircraft database), and a photo of the airframe is downloaded once from airport-data.com into
uploads/aircraft/. No key is needed. Photos remain their photographers' copyright; WayPoints always shows the credit and a link to the original. - Immich: Link photos from your Immich library to a trip and its nodes, legs and stops, or to an adventure. Set
IMMICH_URL(as reachable from the backend container) andIMMICH_API_KEY(withasset.readandasset.viewpermissions) in.env. All Immich requests, including the images themselves, go through the backend. The browser never contacts Immich or sees the key. Linked photos are not copied, so they need Immich to be running to display.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation,version 3 of the license.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
- Get something working
- Implement PostgreSQL database with ability to add and query trips, nodes, legs
- Ability to provide sorted lists
- Implement front end to show trips, nodes, legs and ability to add each
- Implemnt basic styling
- Add ability to have stops
- Show legs/nodes in correct order
- Add README for API endpoints
- Add stops to frontend
- Integrate OSM location selection for nodes/stops/legs
- Clean up order in API, database, and add pages to make consistent
- Make legs/nodes a drop down to reveal stops
- Make legs display correctly
- Add ability to update trips/legs/nodes
- Add ability to add photos
- Add features to API and implement on frontend:
- Total miles of a given trip
- Total destination count
- Add flights/trains/etc. to API
- On AddLeg, add a box that appears below to get all this info
- Integrate into a map view with Leaflet
- Integrate into online services
- Flight data
- Driving distance
- Provide statistics about travel: distances, destination lists
- Fine tune styling
- Figure out how to update database without breaking
- Figure out how to backup database
- Organize page files
- Pull out redundant functions into separate file
- Add ability to customize style and light/dark mode
- Add create trip by flight numbers feature
- Add create trip by cruise
- Make a list of general cleanup to do
- Fix loading page issues
- Fix miles when adding/updating a car leg
- Fix rounding with miles
- Add icons for stops onto map rather than just points
- Fix light mode color scheme
- General cleanup of code and pulling out functions/reused components
- Clean up what is show on TripDetails page
- Dates not being saved w/ Quick Create
- Make only one date appear on first/last nodes
- Visually separate legs from nodes
- Fix styling of dropdown when uploading photo
- Fix leg display name when creating stop
- Figure out a way to correctly order stops and nodes that ocurred on same day
- Add pick a random photo
- Hide invisible nodes from map
- Add dropdown to edit invisble nodes
- Filter destination count by unique osm id and first/last destinations
- Fix bugs with updating components, particularly if you change transportation type of leg
- Add maps of individual trips
- Come up with actual name for project
- Design logo
- Complete docker-compose.yml and install script so that it can be installed with one command and mount relevant volumes
- Add detailed statistics page
- Timeline view and route replay
- Fix invisible ndoes: Display in trip list but not on map and do not count towards destination
- Make trip list display more distinctly with different colors for different item types
- Fix bug over international date line
- Make nodes appear smaller on map
- Add ability to custom order stops w/in nodes Hacked by ordering by updated_at
- Add created_at and updated_at timestamps to all datatypes
- Clean up API endpoints to only return relevant data on call
- Add statistics to statistics: Nights, distances by travel type
- Auto fill distances on all leg types
- Make browser display name based on current page
- Design logo and implement
- Fix mess that is MapView getting data from the page itself and in the MapView
- Fix container so it doesn't rebuild frontend each time
- Possibly refactor so that limited data is sent via API and specific components call for full data
- Not all data is shown in editing forms
- Simplify statistics page code
- Add airport statistics
- Make trip details display look better
- Add date to stops
- API
- Form
- Display
- Add day by day itenerary of each trip
- Clean up this
- Add overall calendar of travel
- osm_id not being saved????
- Fix consistencies in whether states are counted by nodes or stops
- Add global search feature
- Major refactor:
- Lighten up what is sent over API for a nodes/stops by trip, lazy load the rest of the details
- Can't really do this as it messes up Mapview where 90% of data is needed anyways
- Move the pop up component from Statistics into a general use so it can be reused
- Rather than expand cards, use the pop up to show more details
- Remove expand code
- Link to pop up
- Lighten up what is sent over API for a nodes/stops by trip, lazy load the rest of the details
- Make at least somewhat mobile friendly
- Fix navigation bar issue
- Fix any other pages
- Fix call to API
- Add stop/end dates to stops so ex. hotels can be spread across multiple days
- Add ability to add categories to stops
- Add ability to upload multiple pohotos at once
- Fix look of buttons on map
- Fix trip itenerary view
- Fix calendar list view
- Add pop ups to show more details in trips, figure out way to cleanly display stops
- Make links on map auto pop up node/stop details rather than just linking to trip
- Add new data type to represent single adventures
- Separate table
- New page to view adventures
- Add to calendar
- Add to search function
- Add to statistics page, count under stops, display in separated list
- Include in state count
- Fix issue where it freezes randomly
- Ensure all OSM fields are updated when you change location
- fix frame rate when zooming on map
- Add screenshots and more detailed instructions to README
- Add lists table
- On map, link to all trips when you select a node (use the existing API call)
- Add activities
- Diving
- Hiking
- misc.
- Fix issue where map appears over navigation bar
- Fix emojis not always loading
Genearal Cleanup to do by hand:
- Use the same component when viewing destinations by stop category, by country, by list
- Show the date in this component
- Have Map show all visits to a node
- Fix the itenerary daily view
- Remove unnecessary styling across pages