Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add arbitrary extra metadata using the Profile interface #794

Open
bdon opened this issue Jan 16, 2024 · 0 comments
Open

[FEATURE] Add arbitrary extra metadata using the Profile interface #794

bdon opened this issue Jan 16, 2024 · 0 comments

Comments

@bdon
Copy link
Contributor

bdon commented Jan 16, 2024

Is your feature request related to a problem? Please describe.
The profile has a few interface methods like name, attribution, version, isOverlay but does not provide a way to add arbitrary other string:string pairs.

Describe the solution you'd like
Another interface method called extraMetadata that is a Map<String,String>

Describe alternatives you've considered

  • Using a lower-level interface instead of Profile might give a profile author access to TileArchiveMetadata, but that's more work.
  • We can deprecate the individual methods name, version, attribution and instead make all metadata go through one metadata interface method that returns Map<String,String>

Additional context
We should consider how key conflicts between extraMetadata and name, version... as well as with build-time info planetiler:githash and run-time info (osmosis:*) choose which source gets priority.

bdon added a commit to bdon/planetiler that referenced this issue Jan 16, 2024
bdon added a commit to bdon/planetiler that referenced this issue Jan 16, 2024
bdon added a commit to bdon/planetiler that referenced this issue Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant