whosonfirst / go-whosonfirst-spelunker-httpd

Go package implementing an HTTP server for interacting with implementations of the whosonfirst/go-whosonfirst-spelunker.Spelunker interface.
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

"Raw data" links missing WOF ID #8

Closed thisisaaronland closed 6 months ago

thisisaaronland commented 6 months ago

Raw data (GeoJSON) links in the right-hand sidebar are missing WOF IDs. For example:

https://spelunker.whosonfirst.org/id/404227779

Basically the GeoJSON property in the "uris table" needs to be a fully-qualified (relative) URI with a {id} block in order for the URIForId method to work.

But if we change the GeoJSON property we need to make sure that a plain old "/geojson" URI in the GeoJSONAlt property list continues to work for "/123/456/123456.geojson" style URIs.

Or we could just write a bespoke "geojson" template function and carry on.

See: