The Real Python Podcast

Querying OpenStreetMaps via API & Lazy Evaluation in Python

4 snips
May 10, 2024
Python enthusiast Christopher Trudeau discusses querying OpenStreetMap using Overpass API and lazy evaluation in Python. They cover data structures, query formats, advantages of generator expressions, preventing data leakage in pandas and scikit-learn, Django developer survey results, and tools for retrying in Python.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ANECDOTE

Early Coding Experiences

  • Christopher Bailey coded from magazine text adventures on an Apple II.
  • He later got an Adam computer, also Apple II compatible, and used BASIC.
INSIGHT

Asynchronous Signal Handling

  • Control-C sends a SIGINT signal, which programs can trap for graceful shutdowns.
  • Asynchronous operations complicate signal handling, requiring careful management.
ADVICE

Exploring OpenStreetMap Data

  • Explore OpenStreetMap's API by right-clicking elements to see their tags and relations.
  • Use Overpass API and its Python wrapper to query and consume OpenStreetMap data.
Get the Snipd Podcast app to discover more snips from this episode
Get the app