I'm developing an application in which I need to have an underlying graph representation of streets. Google Maps does not provide this data, which is why I decided to use OpenStreetMap.
I have successfully gotten these networks, but to avoid making my algorithm handle too many edges at a time, I've excluded those marked as "residential" by OpenStreetMap.
Is there any corresponding way I can exclude those same roads in the OSM embed?
I've tried Leaflet and OpenLayers and I cannot find any documentation regarding limiting certain types of information.