How postdev360/openplaces works
openplaces is a standard-library mapping CLI for searching OpenStreetMap places, geocoding and reverse geocoding addresses, retrieving place details, and computing routes and isochrones. The main workflow enters through the CLI, resolves a search anchor when needed, queries a provider, and renders text, JSON, or GeoJSON. Separate geocoding and routing branches preserve their provider strategies; shared HTTP handling applies caching, throttling, and retries. The README documents these capabilities, while edges below are limited to relationships visible in excerpts or explicitly documented there; unsampled rendering and provider internals are not inferred.
Main entry points: cli.py Command dispatch · overpass.py Place search/details · http.py HTTP transport · config.py Runtime configuration
Components 18
CLI and output
- Command dispatch
src/openplaces/cli.py - Output rendering
src/openplaces/render.py
Location and search
- Category taxonomy
src/openplaces/taxonomy.py - Coordinate validation
src/openplaces/geo.py - Geocoding strategy
src/openplaces/geocoding.py - Hours evaluator
src/openplaces/opening_hours.py
Provider integrations
- Place search/details
src/openplaces/providers/overpass.py - BAN geocoder
src/openplaces/providers/ban.py - Photon geocoder
src/openplaces/providers/photon.py - Routing/isochrones
src/openplaces/providers/ors.py
Shared runtime
- HTTP transport
src/openplaces/http.py - SQLite response cache
src/openplaces/cache.py - Runtime configuration
src/openplaces/config.py
Other components
- CLI user
- OpenStreetMap data
- BAN service
- Photon service
- OpenRouteService
Connections 28
- CLI user → Command dispatch: invokes
README.md - Command dispatch → Geocoding strategy: resolves places
src/openplaces/cli.py - Command dispatch → Coordinate validation: validates bounds
src/openplaces/cli.py - Command dispatch → Place search/details: searches/details
src/openplaces/cli.py - Command dispatch → Routing/isochrones: requests routes
src/openplaces/cli.py - Command dispatch → Output rendering: formats results
src/openplaces/cli.py - Command dispatch → Category taxonomy: lists categories
src/openplaces/cli.py - Command dispatch → SQLite response cache: manages cache
src/openplaces/cli.py - Geocoding strategy → BAN geocoder: queries first
src/openplaces/geocoding.py - Geocoding strategy → Photon geocoder: falls back
src/openplaces/geocoding.py - Geocoding strategy → Coordinate validation: checks coordinates
src/openplaces/geocoding.py - Place search/details → Category taxonomy: resolves tags
src/openplaces/providers/overpass.py - Place search/details → Hours evaluator: evaluates hours
src/openplaces/providers/overpass.py - Place search/details → Coordinate validation: computes distance
src/openplaces/providers/overpass.py - BAN geocoder → HTTP transport: requests data
src/openplaces/providers/ban.py - Photon geocoder → HTTP transport: requests data
src/openplaces/providers/photon.py - Place search/details → HTTP transport: requests data
src/openplaces/providers/overpass.py - Routing/isochrones → HTTP transport: requests data
src/openplaces/providers/ors.py - HTTP transport → SQLite response cache: reads/writes
src/openplaces/http.py - HTTP transport → Runtime configuration: reads settings
src/openplaces/http.py - BAN geocoder → Runtime configuration: reads endpoint
src/openplaces/providers/ban.py - Photon geocoder → Runtime configuration: reads endpoint
src/openplaces/providers/photon.py - Place search/details → Runtime configuration: reads endpoint
src/openplaces/providers/overpass.py - Routing/isochrones → Runtime configuration: reads key/endpoint
src/openplaces/providers/ors.py - BAN geocoder → BAN service: queries
README.md - Photon geocoder → Photon service: queries
README.md - Place search/details → OpenStreetMap data: searches data
README.md - Routing/isochrones → OpenRouteService: requests routes
README.md