2
votes

Orion geolocation feature involves an attribute, which value represents WGS84 coordinates and an associated metadata:

{"name":"location","value":"WGS84","type":"string"}

If the attribute itself keeps its value to WGS84 coordinates, could the metadata be modified (e.g. change its name to localizaciĆ³n or its type to coordinates) and keep the feature working? or this metadata is somehow hard coded and MUST be specified in that way?
Thanks

1

1 Answers

0
votes

The fields of the metadata used to "mark" the attribute which means entity location work as follow:

  • The name cannot be freely chosen, it is fixed to location.
  • The type is not taken into account in the current Orion version (0.19.0) so can be freely chosen. However, we recommend to use string (as shown in the documentation).
  • The value cannot be freely chosen, it is fixed to WGS84. In the future, the set of available coordinates systems could grow but, by the moment (i.e. 0.19.0) this is the way it works.

Note the name of the attribute to which that metadata is associated can be freely chosen. The attribute name could be "location" (in this case it would match with the name of the metadata), "coordinates", or whatever you want.