Use of Plus codes for GPS capture in ODK Collect

odk-collect
form-design

(Dr. Gareth S. Bestor) #21

Opps - showing my geo-ignorance... :slight_smile: So yes it looks like the github open-location-code has existing Java routines for both encoding (lat+long -> code) and decoding (code -> lat+long) plus codes, which could probably be pulled in as a lib and write a simple wrapper to expose as respective XPath functions.

Since the code is readily available anyway, I'd suggest implementing both geopoint-to-pluscode() and pluscode-to-geopoint() for completeness, in one PR hit.