shadcn.io is an independent project built on shadcn/ui
On this page5 sections
Installation
Overview
Help a group pick a fair place to meet with this meetup locations map for React with Base UI. Meetwell, a group-plans app, puts four friends' neighbourhoods in Amsterdam (Jordaan, De Pijp, Oost and Oud-West) and six cafés on central squares on a live Map that follows your theme, light or dark. The cafés are ranked by the longest bike ride any friend who's coming would have, so the top one is the fairest, "everyone within 14 min", not the one nearest the middle; each café's pill on the map gives that number. The chosen café, the fairest or the one you press, draws every friend's real route there, the longest in colour, and four cells under the map give each friend's minutes and kilometres with a Checkbox to say who's coming. Unticking a friend re-ranks the cafés and redraws the routes; untick everyone and the ranking shows an empty state in the same space. The routes and times are real bike routes from OpenStreetMap, baked into the file. Built from Map, Checkbox, Empty, Button and Guides. For event, social and group-travel apps.
FAQ
How are the cafés ranked?
rankedOf works out, for every café, the longest ride among the friends who are ticked, and sorts by it, shortest first; a tie goes to the café with the least riding in all, then to the name. A fair place is one where nobody has a long ride, which isn't the same as the shortest total or the middle of the map; the dot in the middle is there for reference.
Where do the routes and times come from?
From OSRM's bike profile on OpenStreetMap, asked once while the block was written: each friend to each café, 24 routes, simplified to about 20 points and typed into RIDE_LINES with their seconds and metres. Nothing is fetched while the page runs. The minutes are those seconds rounded up.
Can I use it without a mouse?
Yes. The four friends are checkboxes, named after each friend and neighbourhood, and every café is a button in the ranked list with a pressed state; the map button goes back to the fairest café. The markers are a pointer shortcut to the same choice. A polite message names the café and the longest ride once the choice settles.
Is anything told by colour alone?
No. The longest ride is drawn in colour and thicker, and the friend's cell says "longest" beside the distance; a friend who isn't coming has a dashed marker and reads "Not coming". The chosen café is inverted on the map with its name under it.
What stays local, and how do I wire it up?
All of it, and only the map tiles load, from CARTO over OpenStreetMap. The friends and cafés are invented and the homes are neighbourhoods, not addresses; nothing asks for a location and nothing is sent. In your app take the homes from your members, the places from your search, and the times from your routing service.





