-
-
Notifications
You must be signed in to change notification settings - Fork 4
Include OSM planet file timestamp and seqno in changeset #148
Copy link
Copy link
Description
It'd be nice if the TileJSON endpoint included information about when the tileset was built (specifically the timestamp of the OSM planet file that was used). Applications might wish to display this in their UI.
Planetiler already includes this metadata when it writes a PMTiles file, for example:
$ pmtiles show example.pmtiles
pmtiles spec version: 3
tile type: mvt
bounds: (long: -180.000000, lat: -85.051129) (long: 180.000000, lat: 85.051129)
min zoom: 0
max zoom: 15
center: (long: 0.000000, lat: 0.000000)
center zoom: 0
addressed tiles count: 1084207711
tile entries count: 146457128
tile contents count: 136425150
clustered: true
internal compression: gzip
tile compression: gzip
planetiler:githash 855fa914faef8e4046c9b704401a64bc5fe83ded
planetiler:osm:osmosisreplicationseq 0
planetiler:osm:osmosisreplicationtime 2025-09-01T00:00:02Z
planetiler:buildtime 2025-06-19T14:30:46.214Z
planetiler:osm:osmosisreplicationurl
planetiler:version 0.9.1
And I think the PMTiles JavaScript implementation can read these custom metadata fields too. So I think all we'd have to do is augment the TileJSON generated by pmtiles.getTileJson() with those custom properties.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels