Position is a JSON Structure definition published by Apache Cordova, describing 2 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.
{
"$schema": "https://json-structure.org/meta/core/v0/#",
"$id": "https://raw.githubusercontent.com/api-evangelist/apache-cordova/refs/heads/main/json-structure/apache-cordova-geolocation-position-structure.json",
"name": "Position",
"description": "A Position object returned by the Apache Cordova Geolocation plugin containing coordinates and timestamp.",
"type": "object",
"properties": {
"coords": {
"type": "object",
"description": "A set of geographic coordinates.",
"$id": "#Coordinates",
"properties": {
"latitude": {
"type": "double",
"description": "Latitude in decimal degrees.",
"example": 37.7749
},
"longitude": {
"type": "double",
"description": "Longitude in decimal degrees.",
"example": -122.4194
},
"altitude": {
"type": "double",
"description": "Height of the position in meters above the ellipsoid.",
"example": 15.0
},
"accuracy": {
"type": "double",
"description": "Accuracy level of the latitude and longitude coordinates in meters.",
"example": 10.0
},
"altitudeAccuracy": {
"type": "double",
"description": "Accuracy level of the altitude coordinate in meters. null if not available.",
"example": 5.0
},
"heading": {
"type": "double",
"description": "Direction of travel, specified in degrees counting clockwise relative to true north. null if not available.",
"example": 180.0
},
"speed": {
"type": "double",
"description": "Current ground speed of the device, specified in meters per second. null if not available.",
"example": 1.5
}
},
"required": [
"latitude",
"longitude",
"accuracy"
]
},
"timestamp": {
"type": "int32",
"description": "Creation time for coords as a DOMTimeStamp (milliseconds since UNIX epoch).",
"example": 1718153645993
}
},
"required": [
"coords",
"timestamp"
]
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.