Show HN: America – Road Trip Simulator (opens in a new tab)4m3ric4.com
663 pointsAPIs are a little like the open road—always waiting, full of opportunity, but hardly utilized. So here’s America, composed of several APIs that paint a vivid, real-time picture of a good old-fashioned road trip. Get local classifieds and photos. Tune into local radio stations. Talk wit other drivers. And more.
Exploring the country by car was an invaluable experience for me during my time in the states. I’ve since moved to Barcelona, and find myself missing the territory. This is my attempt at recreating the magic.

Comments (183) 74 threads
Earlier commentsStarting point is always the geographical center of the US near Lebanon, Kansas. The route and general direction are not pre-determined and depend on the vehicle choice. There is no destination really, you can stop at any time.
Available radios change as you progress depending on your location in the game.
https://youtu.be/jwwGY88ikFw (I played the colour Macintosh version though)
The frontend is built with Svelte. This was my first time using the framework and I found their website super helpful: https://svelte.dev/docs
Used Mapbox API and geolib (https://github.com/manuelbieh/geolib/) for building routes and for other geospatial tasks.
"Talkie" was built with simple-peer (https://github.com/feross/simple-peer) and WebRTC. Great tutorial can be found on MDN: https://developer.mozilla.org/en-US/docs/Web/Guide/API/WebRT...
On the backend I use Vercel's serverless functions which are mostly acting as trivial proxies for various open API's.
Feel free to email me if you need more info.
All comments shown.
Couldn't load more comments. Check your connection and try again.