osmlab / editor-layer-index

A unified layer index for OSM editors.
https://osmlab.github.io/editor-layer-index/
Other
222 stars 258 forks source link

Add field for image vintage API URL format #909

Open 1ec5 opened 4 years ago

1ec5 commented 4 years ago

The OSIP layers added in #611 are mosaics collected over the span of five years, which makes the start_date and end_date properties less than informative to a mapper shopping around for current imagery. Fortunately, OGRIP provides a separate ArcGIS MapServer for obtaining the collection date within a bounding box given a coordinate. Their download site uses this API to present download links for individual tiles. It would be great if editors could use the API to display a more specific vintage.

Currently, iD special-cases Esri and Bing layers to show a vintage layer specific to those providers. It would probably be a nonstarter to special-case additional regional layers, but that might be more palatable if the index could specify a URL format for obtaining collection dates in JSON format. The URL format could look similar to a tile URL format and take the same parameters.

andrewharvey commented 4 years ago

+1 to including this into the schema somehow, for a starter adding a URL + something like a jq filter for parsing out the date from the response could work.

The AU/NSW source has a separate PNG tile overlay which has the year, so we just added that in as an overlay, but where this data is machine readable would should do what we can to support it.