Skip to content

Add release version and bounding box to downloaded GeoJSON filename#261

Open
Copilot wants to merge 3 commits intomainfrom
copilot/add-release-metadata-to-filename
Open

Add release version and bounding box to downloaded GeoJSON filename#261
Copilot wants to merge 3 commits intomainfrom
copilot/add-release-metadata-to-filename

Conversation

Copy link

Copilot AI commented Feb 27, 2026

Downloaded filenames only included type, zoom, lat, and lon — making it impossible to identify which Overture Maps release the data came from or the exact area covered without inspecting the file contents.

Changes

  • components/nav/DownloadButton.jsx: Import getLatestReleaseVersion from stacService and fetch it concurrently with getDownloadCatalog via Promise.all (no latency cost — both share cached STAC data). Include the release ID and bounding box coordinates (truncated to 3 decimal places) in the filename.

New filename format

overture-{version}-{type}-{xmin},{ymin},{xmax},{ymax}.geojson
# e.g. overture-2025-01-22.0-buildings--122.419,37.774,-122.415,37.777.geojson
Original prompt

This section details on the original issue you should resolve

<issue_title>Feature request: Add release metadata to saved filename.</issue_title>
<issue_description>Currently, saved filenames only include the zoom, latitude, and longitude to maintain uniqueness. A feature should be added to include certain release metadata to the filename, such as the version, to easily differentiate between different datasets.</issue_description>

Comments on the Issue (you are Copilot in this section)


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: jenningsanderson <1637425+jenningsanderson@users.noreply.github.com>
Copilot AI changed the title [WIP] Add release metadata to saved filename Add release version to downloaded GeoJSON filename Feb 27, 2026
@jenningsanderson Jennings Anderson (jenningsanderson) added the enhancement New feature or request label Feb 27, 2026
@jenningsanderson Jennings Anderson (jenningsanderson) marked this pull request as ready for review February 27, 2026 20:45
@jenningsanderson
Copy link
Collaborator

Copilot Instead of the zoom/lat/lon, can we use the actual bounding box coordinates, truncated to 3 decimal places?

@github-actions
Copy link

github-actions bot commented Feb 27, 2026

🚀 Overture Maps explore-site branch preview deployed!

You can review your changes at https://staging.overturemaps.org/explore-site/pr/261/index.html


♻️ Last refreshed: 2026-02-27T21:10:58Z

…name

Co-authored-by: jenningsanderson <1637425+jenningsanderson@users.noreply.github.com>
Copy link
Author

Copilot AI commented Feb 27, 2026

Copilot Instead of the zoom/lat/lon, can we use the actual bounding box coordinates, truncated to 3 decimal places?

Done in commit 2305456. The filename now uses the bounding box coordinates truncated to 3 decimal places instead of zoom/lat/lon:

overture-{version}-{type}-{xmin},{ymin},{xmax},{ymax}.geojson
# e.g. overture-2025-01-22.0-buildings--122.419,37.774,-122.415,37.777.geojson

Copilot AI changed the title Add release version to downloaded GeoJSON filename Add release version and bounding box to downloaded GeoJSON filename Feb 27, 2026
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Looks good to me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: Add release metadata to saved filename.

3 participants