I live in a city -Buenos Aires- that has many uneven roads (e.g. sett and cobblestone roads) which make riding a bike a bit more of a hazard (for me and for my bike).
Importantly, although we have an official city map, we lack a map that indexes these bad streets.
So, I decided to draw on this idea of a map for cyclists, and make a more general tool that provides information on the main things cyclists usually need to know when riding on the city (e.g. water faucets, bikeshops).
By combining data taken from the excellent OpenStreetMap (OSM) collaborative project and from our government databases (which is less sparse and better curated, but limited to the federal district) I aimed to deliver a tool for all metropolitan-area cylists.
From a more technical standpoint, I created spatial (lines, markers, circles and polygons) data objects (with the sp and sf packages) that I fed to a leaflet map, which reacts to user interactions using the R-Shiny framework with Framework7 standalone capabilities -via shinyMobile- which ensures functionality across mobile devices.
You may try the (bikem)app:
Note: for obvious reasons, all text is in Spanish.
Finally, I hope this project further encourages us all to participate in OSM to not only make this map more accurate and complete, but also to aid many other projects that rely on these data.
Vivo en una ciudad -Buenos Aires- que tiene varias calles complicadas (por ej, empedradas, adoquinadas), lo que hace que andar en bici sea un poco peligroso (para mí y para mi bici).
A pesar de que tenemos un mapa oficial de la ciudad (CABA), no tenemos un mapa donde podamos ver cuáles son esas calles con superficie mala.
Por esto, decidí tomar esta idea de un mapa del ciclista para expandirla a una herramienta más general que ofrezca información sobre las cosas que los ciclistas generalmente necesitamos saber cuando andamos por la ciudad (por ej, dónde hay para cargar agua o arreglar la cámara por si pinchamos).
Con datos del excelente proyecto colaborativo OpenStreetMap (OSM) y del sitio oficial de bases de datos del gobierno de CABA (que es bastante más completo y mejor curado, aunque limitado exclusivamente a CABA, obviamente) apunté a proveer una herramienta para los ciclistas de todo el area metropolitana (AMBA).
Desde un punto de vista técnico, con estos datos generé objetos que representan datos espaciales (líneas, marcadores, círculos y polígonos) con los paquetes sp y sf. Con estos objetos, alimenté un mapa generado en leaflet que reacciona a interacciones del usuario usando R-Shiny con capacidades de Framework7-via shinyMobile- que asegura funcionalidad en dispositivos móviles.
Podés probar el mapa:
Por último, espero que este proyecto nos aliente a participar como editores en OSM no sólo para hacer que este mapa sea más preciso y completo, sino también para ayudar a otros proyectos que recurren a estos datos.
¡Que lo disfruten!