Road highlighting on a map with Overpass
For a recent project at one of my courses, we had a requirement to highlight a road segment on a map at any given point. In a search for a ready-to-use database or API with road coordinates, I’ve found Overpass. It’s a part of an OpenStreetMap project that provides OSM map data over API, and has a feature to get roads around given point, which is exactly what was needed. Try the demo right away or proceed reading the article on implementation details.