Content microservice
places-ai
An Axum service between WordPress and a travel site's frontend that finds the places in articles and puts them on the map.
Router::new()
.route("/posts", get(posts))
.route("/cities", get(cities)) // with GPS
.route("/menu", get(menu_items))
.route("/images/:id", get(image))
.with_state(Arc::new(wp))A purpose-built Rust/Axum microservice for ozimage, a travel writing and photography site. It fetches content from WordPress, reorganises it, and serves structured endpoints for posts, cities, menu items and images.
It extracts the cities mentioned in articles and attaches GPS coordinates, so the frontend can map them. The site itself has since been migrated to Weft with weft migrate --mode headless.