Standards/geo-uri
geo URI
Overview
The geo URI (geo:) is a URI scheme that identifies a physical location as a point in a two- or three-dimensional coordinate reference system, by default WGS-84: geo:48.2010,16.3695,183 is latitude, longitude and altitude in meters 1. It is defined by IETF RFC 5870, A Uniform Resource Identifier for Geographic Locations ('geo' URI), a Standards Track RFC by Alexander Mayrhofer and Christian Spanring published in June 2010 1, 2. It is a payload, not a symbology: the RFC itself proposes encoding it in 2D barcodes on business cards, flyers and paper maps 1, and in practice it is carried as text in a QR Code. ZXing lists it as the format for "Maps, Geographic information" in barcodes 9.
History
- 2 January 2007. Mayrhofer (then at enum.at) and Spanring published the individual Internet-Draft
draft-mayrhofer-geo-uri-00, already titled "A Uniform Resource Identifier for Geographic Locations ('geo' URI)". Its syntax wasgeo:latitude,longitude[,altitude]followed by an optional RFC 3986?querystring, and it already required that an unknown altitude be omitted rather than written as 0 4. - 15 February 2008. Draft
-02was retitled "...for Geographic Areas" and replaced coordinates with a hierarchical tiling scheme: a 2 to 32 character base32 tile identifier 5. The individual draft then expired 5. - 2 June 2009. The work restarted inside the IETF GEOPRIV working group as
draft-ietf-geopriv-geo-uri-00, which went through eight revisions (-00 to -07, the last on 14 April 2010) 2. - 20 April 2010. IANA created the "'geo' URI Parameters" registry 6.
- 6 June 2010. RFC 5870 was published as a Proposed Standard, with coordinates (not tiles), the
crsanduparameters and the IANA registrations 1, 2. - August 2011. vCard 4.0 (RFC 6350, published 31 August 2011) made the GEO property a URI and named the geo URI as "particularly well suited" for it 8, 18.
Technical specification
Syntax. RFC 5870 §3.3 gives this ABNF (excerpt) 1:
geo-URI = geo-scheme ":" geo-path
geo-scheme = "geo"
geo-path = coordinates p
coordinates = coord-a "," coord-b [ "," coord-c ]
p = [ crsp ] [ uncp ] *parameter
crsp = ";crs=" crslabel
crslabel = "wgs84" / labeltext
uncp = ";u=" uval
uval = pnum
parameter = ";" pname [ "=" pvalue ]
pnum = 1*DIGIT [ "." 1*DIGIT ]
num = [ "-" ] pnum
For the default CRS the coordinates are further restricted 1:
latitude = [ "-" ] 1*2DIGIT [ "." 1*DIGIT ]
longitude = [ "-" ] 1*3DIGIT [ "." 1*DIGIT ]
altitude = [ "-" ] 1*DIGIT [ "." 1*DIGIT ]
There is no ?query component in the RFC grammar: everything after the coordinates is a ;-separated parameter 1.
Semantics (WGS-84) 1:
| Element | Rule |
|---|---|
| Coordinates | Decimal degrees, latitude first. Latitude −90 to 90, longitude −180 to 180; anything outside MUST be treated as invalid. South, west and below-geoid values carry a leading -; -0 equals 0. |
| Altitude | Meters, relative to the WGS-84 reference geoid, not the ground. If unknown, the value and its comma MUST NOT be present; unknown altitude must not be written as 0. |
| Poles | At latitude ±90 the longitude SHOULD be 0, but consumers must accept any longitude. |
crs |
Optional; absent or wgs84 means WGS-84 (EPSG 4326 in 2-D, 4979 in 3-D). Case-insensitive, lowercase preferred. Consumers MUST NOT ignore it, and must not dereference a CRS they don't know. |
u |
Uncertainty in meters, applied to all dimensions. Absent means unknown; u=0 is allowed and is not the same as absent. The number of digits in a coordinate must not be read as precision. |
| Order | crs and u may each appear once, before any other parameter, and crs comes first if both are present. |
| Characters | ASCII only; the comma delimiter MUST NOT be percent-encoded, and coordinates, crslabel and uval should never be. |
Comparison. Two geo URIs are equal when they use the same CRS (an omitted crs equals crs=wgs84) and their coordinates and u are mathematically identical, so 43.10 equals 43.1; parameter order does not matter; a URI without altitude never equals one with altitude; at the poles longitude is ignored, and longitude 180 equals −180 1.
Registries. RFC 5870 created two IANA registries: "'geo' URI Parameters" (crs, Predefined; u, Constrained; policy Specification Required) and "'geo' URI 'crs' Parameter Values" (only wgs84; policy IESG Approval with Specification Required) 1, 6. The scheme itself is registered as Permanent in the IANA URI Schemes registry 7.
GML mapping. RFC 5870 §7 (non-normative) maps a geo URI to GML: two coordinates with u absent or 0 become a 2-D Point (EPSG::4326), three coordinates a 3-D Point (EPSG::4979), and a non-zero u turns these into a Circle or Sphere whose radius is the uncertainty 1.
Examples from RFC 5870 1:
| URI | Where in the RFC | Meaning |
|---|---|---|
geo:13.4125,103.8667 |
§1 Introduction | Plain 2-D point |
geo:48.2010,16.3695,183 |
§6.1 | 3-D point, "the office location of one of the authors in Vienna, Austria"; CRS defaults to WGS-84, uncertainty undefined |
geo:48.198634,16.371648;crs=wgs84;u=40 |
§6.2 | Hyperlink to Vienna's Karlskirche; explicit CRS, 2-D, 40 m uncertainty |
geo:90,-22.43;crs=WGS84 = geo:90,46 |
§6.4 | Equal: both are the North Pole, and crs is case-insensitive |
geo:66,30;u=6.500;FOo=this%2dthat = geo:66.0,30;u=6.5;foo=this-that |
§6.4 | Equal: numbers compared mathematically, unknown parameter compared after percent-decoding |
geo:94,0 |
§9.1 | Invalid: latitude "beyond" the North Pole |
The §6.4 example geo:22.300;-118.44 = geo:22.3;-118.4400 uses ; where the grammar requires ,; erratum 8389 (2025) corrects it 3.
In a QR code. A geo URI is plain ASCII text, so it is encoded in an ordinary QR symbol. ZXing's documented example is geo:40.71872,-73.98905,100 9. The Barcoder playground builds geo:lat,lon[,alt][;u=…], which follows the RFC 5870 grammar above. It leaves out crs, since WGS-84 is the default when it is absent, so ZXing-based scanners read the code as a location unless ;u= is set; see the note on ZXing under Implementations.
Use cases
- Printed location codes. RFC 5870 §6.3 describes a geo URI in a 2D barcode on a business card, flyer or paper map: the phone decodes it, offers a route, and the GPS guides the user there 1. ZXing suggests a reader open a local mapping app or a map web site at the point 9.
- Hyperlinks.
<a href="geo:…">links in web pages, which a browser could turn into a map thumbnail, a hand-off to the user's mapping service, or a comparison with locations in subscribed GeoRSS feeds 1. - Contact cards. The vCard 4.0 GEO property holds a URI, and RFC 6350 names the geo URI as particularly well suited; its example is
GEO:geo:37.386013,-122.0829328. vCards are a common QR payload (vCard QR). - Opening a map on Android. Android's common intents document
ACTION_VIEWwith ageo:latitude,longitudeURI to show a location on a map 12, and Google Maps for Android accepts the same intent 13. - Navigation apps. OsmAnd, an open-source offline map and navigation app, parses incoming
geo:URIs (and its ownosmand.geo:) into points 14. RFC 5870 §5 names "start navigation to the location" on a GPS receiver as a use of dereferencing 1.
Implementations
| Project | Lang | Stars | Last active | Role | Notes |
|---|---|---|---|---|---|
| zxing/zxing | Java | 34,170 | Oct 2026 | Decoder | GeoResultParser 10, 11 |
| osmandapp/OsmAnd | Java | 6,095 | Oct 2026 | Consumer | GeoPointParserUtil handles geo: and osmand.geo: 14 |
| k3b/k3b-geoHelper | Java | 7 | Mar 2023 | Encoder + decoder | Parses and formats geo URIs for Java and Android; its example is geo:53,10?q=(Hamburg)&z=8 16 |
| geocaml/geo-uri | OCaml | 5 | Apr 2022 | Encoder + decoder | Builds and parses RFC 5870 URIs, including CRS, uncertainty and extra parameters 17 |
ZXing follows the 2007 draft, not the RFC. GeoResultParser's Javadoc cites draft-mayrhofer-geo-uri-00, and its pattern is geo:([\-0-9.]+),([\-0-9.]+)(?:,([\-0-9.]+))?(?:\?(.*))?, matched against the whole text 10. So it accepts the draft's ?query 4, but a URI with RFC 5870 parameters such as ;crs=wgs84 or ;u=40 does not match and is not recognised as a geo result. It also stores a missing altitude as 0.0 and rejects negative altitudes 10, although the RFC says unknown altitude must not be represented as 0 and allows depths 1. Payloads meant for the widest range of scanners are safest as bare geo:lat,lon[,alt].
Android's documented geo: forms likewise use a query string the RFC does not define (?z= zoom, ?q= search or label) 12.
Fun facts
- The "geo" draft that dropped coordinates. In February 2008 the draft briefly stopped being about points at all:
-02, retitled "Geographic Areas", identified an area by a base32 tile code up to 32 characters long 5. The working-group drafts and the final RFC went back to latitude and longitude 1, 2. - A 15-year-old typo. The §6.4 comparison example writes
geo:22.300;-118.44, with a semicolon between the coordinates. It was reported on 22 April 2025 and held for document update the next day 3. The only verified erratum is grammatical: "Due to it's short length" in the barcode section (2022) 3.
Comparison
| geo URI (RFC 5870) | Android / Google Maps geo: intent |
Map web link (https://) |
Open GeoSMS 1.0 | |
|---|---|---|---|---|
| Form | geo:lat,lon[,alt][;crs=][;u=] 1 |
geo:lat,lon?z=zoom, geo:0,0?q=address 12, 13 |
Provider URL, opened by the built-in map app 9 | First SMS line is an http/https URI with a geo=lat,lon query parameter 15 |
| Vendor | Neutral; the client picks the map service 1 | Android intent 12 | Tied to one provider 9 | The server named in the URI processes the message 15 |
| Address or search text | Out of scope (civic addresses excluded) 1 | Yes, q= 12 |
Yes, with "more options" 9 | Optional text after the URI line 15 |
| Altitude, uncertainty | Both first-class 1 | Not documented 12 | Provider-specific | No: 2-D latitude/longitude in WGS 84 only 15 |
| Standard body | IETF 1 | Google 12 | — | OGC, approved 7 Sep 2011 15 |
When to choose which. Use a geo URI for a bare point that any mapping app should open, especially when altitude or accuracy matters 1. Use a provider link when you need a named place, a search or routing options that the geo URI does not carry 9. Inside a contact card, put the geo URI in the vCard GEO field rather than encoding it separately (vCard QR, 8). The OGC's Open GeoSMS Core 1.0, a location format for text messages, does not use the geo: scheme: it requires an http/https URI whose first query parameter is geo=latitude,longitude, ending in &GeoSMS 15.
Status
Active. RFC 5870 remains a Proposed Standard with no successor; the datatracker last updated its metadata in May 2026 2. The IANA geo URI parameter registry still holds only crs and u, with wgs84 the only CRS value, unchanged since 7 June 2010 6, and geo is a Permanent scheme 7. An erratum was held for document update in April 2025 3. Android's developer documentation, last updated in October 2026, still documents geo: intents 12, 13.
Sources
Deployments
No country reports mention this standard by name.
Regions / aggregations not mapped to a single country
- Universal