Skip to content

Improve altitude definition / consistency #210

Description

@jlfy738

MDN : GeolocationCoordinates.altitude

Returns a double representing the position's altitude in meters, relative to nominal sea level. This value can be null if the implementation cannot provide the data.

W3C Recommendation

9.2 altitude and altitudeAccuracy attributes
The altitude attribute denotes the height of the position, specified in meters above the WGS84 ellipsoid.

Implementations :

  • Android refers to the wgs84 elipsoid
  • iOS : refers to the geoid (sea level)

There are therefore actually two issues:

  • consistency between the documentation and the specification
  • consistency between implementations

The API could at least provide the reference system for the returned metric.

See also :

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions