Location Standard

A universal way to describe places, coordinates, and geographic areas.

Point

The simplest location: a single coordinate with optional metadata.

{
	$standard: 'location',
	$version: 1,
	$type: 'point',
	$name: 'Stephansdom',
	$lat: 48.20849,
	$lng: 16.37308,
	$altitude: 171,
	$accuracy: 5,
	$address: {
		$street: 'Stephansplatz 3',
		$city: 'Vienna',
		$region: 'Vienna',
		$postal: '1010',
		$country: 'AT'
	}
}

Area

A bounded region defined by a polygon of coordinates.

{
	$standard: 'location',
	$version: 1,
	$type: 'area',
	$name: 'Innere Stadt',
	$boundary: [
		{ $lat: 48.2140, $lng: 16.3555 },
		{ $lat: 48.2140, $lng: 16.3850 },
		{ $lat: 48.1990, $lng: 16.3850 },
		{ $lat: 48.1990, $lng: 16.3555 }
	]
}

Route

An ordered sequence of points forming a path.

{
	$standard: 'location',
	$version: 1,
	$type: 'route',
	$name: 'Morning Run',
	$points: [
		{ $lat: 48.2082, $lng: 16.3738, $timestamp: '2026-03-29 06:30:00' },
		{ $lat: 48.2095, $lng: 16.3755, $timestamp: '2026-03-29 06:32:14' },
		{ $lat: 48.2110, $lng: 16.3800, $timestamp: '2026-03-29 06:35:47' }
	],
	$distance: 2450,
	$duration: 720
}

Location Types

$typeUse case
pointSingle coordinate (place, address, POI)
areaBounded region (district, zone, property)
routeOrdered path (track, directions, journey)

Standard Properties

PropertyTypeRequiredDescription
$standardstringyesAlways 'location'
$versionnumberyesStandard version
$typestringyespoint, area, or route
$namestringnoHuman-readable name
$latnumberyes*Latitude (WGS84)
$lngnumberyes*Longitude (WGS84)
$altitudenumbernoMeters above sea level
$accuracynumbernoAccuracy radius in meters
$timestampstringnoUTC datetime for this point
$addressobjectnoStructured address
$boundaryarrayyes*Polygon coordinates for area
$pointsarrayyes*Ordered coordinates for route
$distancenumbernoTotal distance in meters
$durationnumbernoTotal duration in seconds

* Required depends on $type: point needs $lat/$lng, area needs $boundary, route needs $points.

Address Properties

PropertyTypeDescription
$streetstringStreet name and number
$citystringCity or locality
$regionstringState, province, or region
$postalstringPostal/ZIP code
$countrystringISO 3166-1 alpha-2 country code