Look for all relevant tools that already do something similar and check how they access their data and do caching.
See https://docs.google.com/spreadsheets/d/1VMuSK60oEUifDYD7Ir7A59Va2TvdU0oJMPMSx9iOxhA/edit#gid=0
- Special:Nearby for the mobile view
- WikiShootMe (code)
- It is possible to add a sparql query (might be interesting for T302297). There is a nice step by step instruction: https://meta.wikimedia.org/wiki/WikiShootMe#Filter_items_to_show (example) Loading takes ~30 seconds.
- Wikinity (code)
- Data access: via https://www.wikidata.org/w/api.php, see app.py#222 and https://query.wikidata.org/sparql, see app.py#264
- WIWOSM (docs | code)
- "WIWOSM (Wikipedia where in OSM) is a project to show for a Wikipedia article geometric objects from OpenStreetMap." https://wiki.openstreetmap.org/wiki/WIWOSM "OpenStreetMap has different representations for objects. This means a place can be represented by a node (a single point) or a multipolygon (an area). " https://wiki.openstreetmap.org/wiki/WIWOSM#Object_types --> might be interesting for T302297
- Wikimap (docu)
- Geopedia (Propriety software)