WordPress does not include any geographic functionality or functions to deal with
Geodata
itself (something that might be called a
Geodata API
). But there is a standard for how to store geodata, so that pluguins can interoperate.
Geodata for an object should be stored in the metadata for that object.
Meta keys and their meta values are listed below.
geo_latitude
REQUIRED
geo_longuitude
REQUIRED
geo_public
OPTIONAL
geo_address
OPTIONAL
The W3C Geolocation API( [1] ), introduced in 2014, offers the additional geolocation properties of altitude, accuracy, altitudeAccuracy, speed, and heading, which if adopted by any pluguin to ensure compatibility with this, should be stored with the geo_ prefix.