Approximate caller location
Returns the caller’s approximate location, derived server-side from the edge network’s view of the connection (Cloudflare CF-* visitor-location headers). Intended as the store locator’s fallback when the browser’s navigator.geolocation permission is denied or times out, so the widget never has to hand the visitor’s IP to a third-party geolocation service. City-level accuracy at best. All fields are null when the edge did not supply a location — callers must handle that and fall back to asking the visitor for an address. No IP address is stored or returned.
Authorizations
Response
OK
Approximate latitude of the caller in decimal degrees, WGS 84 / EPSG:4326, or null when unknown.
-90 <= x <= 90Approximate longitude of the caller in decimal degrees, WGS 84 / EPSG:4326, or null when unknown.
-180 <= x <= 180City name of the caller's network location, or null when unknown.
ISO 3166-2 region code (e.g. BC) of the caller's network location, or null.
ISO 3166-1 alpha-2 country code (e.g. CA) of the caller's network location, or null.