I'm writing a bot to import coordinates to Wikidata and I ran into problems with the "precision" field. For a lot of values it throws 'The value does not comply with the property's definition.
The value's data value type "ununserializable" does not match the property's data type's data value type "globecoordinate".'
Example json:
{'latitude': 41.9689, 'altitude': None, 'globe': 'http://www.wikidata.org/entity
/Q2', 'longitude': 12.4092, 'precision': 0.012082121278963331}
I did some testing on https://www.wikidata.org/wiki/Q3969823
- 0.012039052310050358 fails
- 0.012058 fails (round on 6 decimals)
- 0.00001 works (hard coded)
- 0.00002 fails (hard coded)
Version: unspecified
Severity: normal
Whiteboard: u=dev c=frontend p=0
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=63063