random thoughts in the vacuum

OFFLINE · v0.0.5

GPS / location access
INPUT

Location access starts only when requested. The browser chooses the location provider; it may use a network service and cannot guarantee a GPS hardware fix.

OUTPUT

Retrieved data

Calculated data

WGS84 conversions use the latest fix. Display precision does not increase the reported location accuracy.

Opening a map shares the coordinates with that provider. No map is loaded automatically.

How to use?

Use localhost or HTTPS. Get location requests one fresh position; Watch location updates the latest position as the browser supplies it. High accuracy is enabled by default; timeout defaults to 15 seconds. The maximum age is zero, requesting a fresh reading instead of a cached fix.

Retrieved data shows the original report: latitude/longitude in degrees, horizontal accuracy, altitude and altitude accuracy in meters, heading in degrees, speed in meters per second, and the fix timestamp. Missing optional values are explicitly unavailable; zero is a valid value.

Calculated data converts the latest valid coordinates locally using WGS84:

  • UTM: zone, hemisphere (N/S), easting, and northing rounded to metres.
  • MGRS: complete grid reference with five easting and five northing digits, truncated to a one-metre cell.
  • USNG: the equivalent WGS84 reference with spaces between its components.
  • Open Location Code (Plus Code): a full 11-significant-digit code (excluding the + separator), without a locality-dependent shortened form.

UTM includes the Norway and Svalbard zone exceptions. UTM-based MGRS/USNG output is supported from 80°S through 84°N. Outside that range these rows explain that UPS conversion is unavailable; Plus Codes and map links still work. Grid letters are latitude bands, distinct from the UTM hemisphere. Display precision does not improve GPS accuracy; a one-metre grid cell can still contain an inaccurate fix.

The OpenStreetMap, Google Maps, and Apple Maps links open the retrieved coordinates in a new tab. Clicking a link sends those coordinates to that map provider. No map opens or loads automatically. No map tiles, geocoding, public-IP service, or conversion API is used by the tool. Conversion and link generation remain offline. Each report has its own copy button; the text/JSON selector applies to both. Both reports refer to the same fix timestamp.

Conversion references: Karney’s transverse Mercator series, USNG standard, and Open Location Code specification.

This page makes no diagnostic network requests. Coordinates leave the page only when you choose to open a map link or copy/share a report yourself. The browser/OS chooses its location provider, which may use network services. The web API cannot force GPS hardware, identify the fix’s source, or guarantee fully offline location acquisition. Disconnect the system’s network separately when testing provider behavior offline; a fix may then be unavailable. Initial page assets are local and page connections, including development live reload, are blocked. This does not control the native location provider.

Stop ends a watch or ignores a pending single request while retaining the last fix and calculated data. Clear erases both reports and removes map links. Starting a replacement request also removes old results and links. Leaving or hiding the tab stops updates; return and request location again to resume. Starting a request replaces any previous request/watch. Permission denial, unavailable fixes, and timeouts have separate statuses. A watch can recover after a timeout or unavailable fix.

Reports remain in memory; use Copy retrieved data or Copy calculated data to copy the selected text/JSON format. Nothing is stored in the page URL or persistent storage. Production location-denial policy stays in place; this draft tool targets localhost development previews.

Back to tools