GeezerVison is showing github.com — How should we represent 'geoValue' field values in Search? · Issue #1161 · googleapis/google-cloud-python
How should we represent 'geoValue' field values in Search? #1161Labels priority: p2Moderately-important priority. Fix may not be included in next release.type: questionRequest for information or clarification. Not an issue. DescriptionThe Search docs for geoValue don't specify acceptable formats: they link to a Wiki page of what is basically all known ways humans have ever spelled latitude and longitude.
Strawman: we expect a tuple of two floats, where positive/negative represent degrees North / South of the equator (for latitude) and East / West of Greenwich (for longitude). Or else we take any string, require the user to pass in a field_type argument to use geoValue, and just let the server barf if it doesn't like the string. Activitydhermes commented on Oct 1, 2015 We can just use our own type? And make simple assumption initially for OurType.from_string() and then gradually build up behavior as needed. OurType.to_string() would just do the "obvious" thing. jgeewax commented on Oct 4, 2015 Might be worthwhile to explore using something similar to what NDB/DB use for geo-points? dhermes commented on Dec 31, 2015 @tseaver When will this be resolved? FWIW ndb / db just use a nested entity with x and y set for geo-points. In v1beta3 a native protobuf message type is used. tseaver commented on Jan 7, 2016 ContributorAuthor More actions There are really two issues here:
- The API docs don't specify the acceptable formats for
geoValue (see Where do we report bugs with Cloud Search? #1163).
- Do we need to be able to detect when users have passed us a
geoValue without an explicit flag? If so, we have to define what they are to pass.
dhermes commented on Jan 7, 2016 Since GeoPoint is no officially supported in datastore v1beta3 we could just put our own GeoPoint class in core and then do the conversion for users. lukesneeringer commented on Aug 11, 2017 Hello,
One of the challenges of maintaining a large open source project is that sometimes, you can bite off more than you can chew. As the lead maintainer of google-cloud-python, I can definitely say that I have let the issues here pile up.
As part of trying to get things under control (as well as to empower us to provide better customer service in the future), I am declaring a "bankruptcy" of sorts on many of the old issues, especially those likely to have been addressed or made obsolete by more recent updates.
My goal is to close stale issues whose relevance or solution is no longer immediately evident, and which appear to be of lower importance. I believe in good faith that this is one of those issues, but I am scanning quickly and may occasionally be wrong. If this is an issue of high importance, please comment here and we will reconsider. If this is an issue whose solution is trivial, please consider providing a pull request.
Thank you!
MetadataMetadatapriority: p2Moderately-important priority. Fix may not be included in next release.type: questionRequest for information or clarification. Not an issue. DevelopmentNo branches or pull requestsIssue actions
|