Changes to the SPR #1
Replies: 9 comments 13 replies
-
Id love to see |
Beta Was this translation helpful? Give feedback.
-
Potentially we could clarify that the bounding box min/max lat/long floats are also biased towards "label"?
|
Beta Was this translation helpful? Give feedback.
-
While these alternate geoms don't exist today... They should, and including a pointer to a "200 kb" or less "display" geometry directly in the SPS would be amazing. |
Beta Was this translation helpful? Give feedback.
-
Some fields we use in Pelias which we might consider: wof:label
wof:lang_x_official
wof:shortcode
wof:abbreviation |
Beta Was this translation helpful? Give feedback.
-
How about the |
Beta Was this translation helpful? Give feedback.
-
A few initial comments:
|
Beta Was this translation helpful? Give feedback.
-
Part of the rationale for the SPR was that it would/could/should be the common response for API methods (remember the API...) or really any other query whether that was a general-purpose text search or a spatial lookup. The SPR was designed with the idea that there would always be a common response (regardless of the overall heterogeneity of the data) with enough data to plot the results on a map and, importantly, perform subsequent lookups/rendering by fetching the whole record or using something like the wof-browser's "select" endpoint [1]. [1] https://github.com/whosonfirst/go-whosonfirst-browser#select |
Beta Was this translation helpful? Give feedback.
-
The recent motivation for extending In these cases it's nice to have a bunch of fields available, and that requirement may not 100% align with the original motivation when designing It's worth considering if a new view of the data may make sense for this purpose, an 'extended place response` (epr) for instance, or whether the two concepts can be expressed in the same view. |
Beta Was this translation helpful? Give feedback.
-
Conceptually, the SPR is an "interface" so there can be multiple implementations/representations. For example, there are different implementations for alt and not-alt geometries:
That's convenient for strictly-typed languages (which only know about interface methods rather than property values) but also helps to enforce a measure of commonality across the entire dataset. So there is technically nothing to prevent a dynamically generated SPR from picking and choosing from the available language names but we should think carefully about how that works at a technical level. For example, all of the PIP code is predicated on only having to store a SPR alongside the spatial data used to perform a query rather than an entire WOF record. This is a practical consideration to account for the database size. One approach might be to introduce a URI-based syntax for creating SPRs, along the lines of the
That would allow for an SPR to be instantiated along the lines of The point being that there would be a consistent and portable way to define "labeled" SPRs and to define rules and reference implementations for how a SPR URI translates a WOF record into SPR JSON. In the meantime, remember that the https://data.whosonfirst.org/select/85922499?select=properties.name:zho_x_preferred |
Beta Was this translation helpful? Give feedback.
-
What changes should be applied to a
v3
of the Standard Places Response (SPR). See also:Beta Was this translation helpful? Give feedback.
All reactions