Created
April 18, 2024 16:25
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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