> For the complete documentation index, see [llms.txt](https://docs.nearby.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nearby.finance/protocol-layers/proof-of-location-location-layer.md).

# Proof of Location (Location Layer)

## Introduction

The Proof of Location Layer, also referred to as zkGeolocation, is the foundational component of Nearby Protocol.

It enables users to generate cryptographic proofs about their physical presence without exposing precise location data.

Traditional location systems require users to disclose exact coordinates to applications, service providers or centralized platforms. This creates significant privacy concerns and introduces unnecessary data collection risks.

zkGeolocation takes a different approach.

Instead of sharing location data, users generate zero-knowledge proofs that verify location-related statements while keeping sensitive information private.

A user may prove they are:

* Within a city
* Inside a venue
* Present at an event
* Located within a country
* Eligible for a location-based reward

without revealing their exact coordinates.

### Core Objectives

The Proof of Location Layer is designed around four primary objectives:

#### Privacy

Location verification should not require location disclosure.

#### Verifiability

Proofs must be independently verifiable without relying on trusted intermediaries.

#### Security

Location claims should be resistant to spoofing, tampering and manipulation.

#### Interoperability

Verified location proofs should be usable across applications, protocols and real-world services.

### Architecture Overview

The zkGeolocation system combines several complementary technologies:

* Device Attestation
* Trusted Execution Environments (TEE)
* Multi-signal geolocation validation
* Zero-knowledge proof systems
* On-chain verification infrastructure
* Distributed node participation

Together, these components enable privacy-preserving location verification at scale.

### Location as a Primitive

Nearby treats physical presence as a verifiable digital primitive.

Rather than storing and sharing location data, the protocol converts geographic facts into cryptographic proofs that can be verified without disclosure.

This approach enables a new category of applications built around trust, privacy and physical-world coordination.

The result is a geolocation system where users maintain control over their data while applications retain the ability to verify location-dependent conditions.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nearby.finance/protocol-layers/proof-of-location-location-layer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
