# LOC — Geocaching.com LOC

> LOC (Geocaching.com LOC): XML waypoint format from Geocaching.com that stores basic geocache locations with IDs, names and links. Specs, software and free sample files; convert LOC to 40 formats online.

- Page: https://beta.mygeodata.cloud/formats/loc



## What is a LOC file?

Geocaching.com LOC is a simple XML waypoint format introduced by Groundspeak, the company behind the Geocaching.com website. It provides a lightweight way to download one or more geocache positions and load them into GPS receivers, geocaching management tools and mapping applications. It has served as a basic alternative to the richer GPX-based pocket query files.

A LOC file is a single plain-text XML document. A root loc element contains one or more waypoint elements. Each waypoint typically holds a name element with the cache code as an identifier and the cache title as text, a coord element with latitude and longitude attributes in decimal degrees on WGS 84, a type element, and a link to the cache page on the website. Only point geometry is supported, and the attribute set is minimal. Cache descriptions, hints, logs and most cache metadata are absent, and there are no tracks, routes or custom fields. Coordinates are always in WGS 84, so no projection information is stored.

LOC files usually come from the Geocaching.com website, where users download single cache positions to load into a GPS receiver or a cache management program. Because the format holds only a name, a coordinate pair, a type and a link, anyone who needs descriptions, hints or logs should use another export. Check that the file is plain XML and that coordinates are in decimal degrees.

### Technical details

| | |
|---|---|
| Full name | Geocaching.com LOC |
| Data type | Vector · GPS & navigation |
| File extension | .loc |
| Files | Single file |
| Media type | text/xml |
| Geometry types | Point |
| Multiple layers | No |
| Mixed geometry in a layer | No |
| Attribute names | — |
| Coordinate system | Always WGS 84 (EPSG:4326) |
| Converter support | Read only |
| Typical software | GPSBabel, GSAK, EasyGPS, ExpertGPS |
| Specification | https://www.gpsbabel.org/htmldoc-development/fmt_geo.html |

### Specifications & references

- https://www.gpsbabel.org/htmldoc-development/fmt_geo.html

### Sample LOC files — free download

- [Places (.loc waypoints)](https://beta.mygeodata.cloud/static/landing/samples/v1/loc/st-helena-places.loc) — 58 places of Saint Helena (20 settlements, 17 peaks, 21 points of interest) with name, category, elevation from Copernicus DEM and OSM id. Geocaching.com .loc XML. (8.5 kB, EPSG:4326)

### Convert LOC to other formats

- [LOC to KMZ](https://beta.mygeodata.cloud/converter/loc-to-kmz)
- [LOC to KML](https://beta.mygeodata.cloud/converter/loc-to-kml)
- [LOC to GPX](https://beta.mygeodata.cloud/converter/loc-to-gpx)
- [LOC to DXF](https://beta.mygeodata.cloud/converter/loc-to-dxf)
- [LOC to SHP](https://beta.mygeodata.cloud/converter/loc-to-shp)
- [LOC to CSV](https://beta.mygeodata.cloud/converter/loc-to-csv)
- [LOC to XLSX](https://beta.mygeodata.cloud/converter/loc-to-xlsx)
- [LOC to GeoJSON](https://beta.mygeodata.cloud/converter/loc-to-geojson)
- [LOC to GPKG](https://beta.mygeodata.cloud/converter/loc-to-gpkg)
- [LOC to GeoPDF](https://beta.mygeodata.cloud/converter/loc-to-geopdf)
- [LOC to TopoJSON](https://beta.mygeodata.cloud/converter/loc-to-topojson)
- [LOC to WKT](https://beta.mygeodata.cloud/converter/loc-to-wkt)
- [LOC to DGN](https://beta.mygeodata.cloud/converter/loc-to-dgn)
- [LOC to MIF](https://beta.mygeodata.cloud/converter/loc-to-mif)
- [LOC to SVG](https://beta.mygeodata.cloud/converter/loc-to-svg)
- [LOC to FGB](https://beta.mygeodata.cloud/converter/loc-to-fgb)
- [LOC to GML](https://beta.mygeodata.cloud/converter/loc-to-gml)
- [LOC to MapInfo](https://beta.mygeodata.cloud/converter/loc-to-mapinfo)

## Frequently asked questions

### What is the difference between LOC and GPX for geocaching?

LOC stores only basic waypoint data: a code, title, coordinates, type and link. GPX files, such as pocket queries, can also carry richer cache details and support tracks and routes.

### Why is information such as the cache description or logs missing after converting a LOC file?

The LOC format does not contain that information, so it cannot be recovered during conversion. To get descriptions, hints or logs, export the cache in a richer format such as GPX.

### Can a LOC file contain tracks, routes or polygons?

No. LOC supports only point waypoints, so lines, areas, tracks and routes cannot be stored in it. Data of those types must be saved in another format such as GPX or KML.

### What is a LOC file?

Geocaching.com LOC is a simple XML waypoint format introduced by Groundspeak, the company behind the Geocaching.com website. It provides a lightweight way to download one or more geocache positions and load them into GPS receivers, geocaching management tools and mapping applications. It has served as a basic alternative to the richer GPX-based pocket query files.

A LOC file is a single plain-text XML document. A root loc element contains one or more waypoint elements. Each waypoint typically holds a name element with the cache code as an identifier and the cache title as text, a coord element with latitude and longitude attributes in decimal degrees on WGS 84, a type element, and a link to the cache page on the website. Only point geometry is supported, and the attribute set is minimal. Cache descriptions, hints, logs and most cache metadata are absent, and there are no tracks, routes or custom fields. Coordinates are always in WGS 84, so no projection information is stored.

### How do I open a LOC file?

LOC files can be opened in GPSBabel, GSAK, EasyGPS and ExpertGPS. Without any software you can preview and convert them online in MyGeodata Cloud.

### What can I convert LOC to?

Popular conversions are KMZ, KML, GPX, DXF, SHP and CSV. In total the Converter writes LOC data to 40 formats.

### Which coordinate system does LOC use?

LOC always uses WGS 84 (EPSG:4326).

