Skip to content

Instantly share code, notes, and snippets.

@dbreunig
Created April 18, 2024 16:25
Show Gist options
  • Save dbreunig/199cc8ade6b12bbfa258781570883055 to your computer and use it in GitHub Desktop.
Save dbreunig/199cc8ade6b12bbfa258781570883055 to your computer and use it in GitHub Desktop.
Describe the city, state, country, whatever you want to get Overture Maps place data for, returned as newline delimited geojson output to stdout.
#!/bin/bash
# Usage
# ./places_for_desciption.sh 'DESCRIBE THE LOCATION YOU WANT PLACES FOR'
# Check if an argument is provided
if [ "$#" -ne 1 ]; then
echo "Usage: $0 'Location Name'"
exit 1
fi
# Capture the argument
location="$1"
# Run the command with the location argument
overturemaps download --bbox=$(llm "Give me a bounding box for $location expressed only four numbers delineated by commas, with no spaces, longitude preceding latitude.") -f geojsonseq --type=place
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment