> ## Documentation Index
> Fetch the complete documentation index at: https://docs.resq.software/llms.txt
> Use this file to discover all available pages before exploring further.

# ResQ.Blockchain.LocationAttestation.LocationAttestation(string,double,double,double,System.DateTimeOffset,string)

### [ResQ.Blockchain](./ResQ.Blockchain.md "ResQ.Blockchain").[LocationAttestation](./ResQ.Blockchain.LocationAttestation.md "ResQ.Blockchain.LocationAttestation")

## LocationAttestation(string, double, double, double, DateTimeOffset, string) Constructor

Represents a cryptographically signed location attestation for a drone.

```csharp theme={null}
public LocationAttestation(string DroneId, double Latitude, double Longitude, double Altitude, System.DateTimeOffset Timestamp, string Signature);
```

#### Parameters

<a name="ResQ.Blockchain.LocationAttestation.LocationAttestation(string,double,double,double,System.DateTimeOffset,string).DroneId" />

`DroneId` [System.String](https://learn.microsoft.com/en-us/dotnet/api/system.string "System.String")

Unique identifier of the drone.

<a name="ResQ.Blockchain.LocationAttestation.LocationAttestation(string,double,double,double,System.DateTimeOffset,string).Latitude" />

`Latitude` [System.Double](https://learn.microsoft.com/en-us/dotnet/api/system.double "System.Double")

Latitude in decimal degrees (-90 to 90).

<a name="ResQ.Blockchain.LocationAttestation.LocationAttestation(string,double,double,double,System.DateTimeOffset,string).Longitude" />

`Longitude` [System.Double](https://learn.microsoft.com/en-us/dotnet/api/system.double "System.Double")

Longitude in decimal degrees (-180 to 180).

<a name="ResQ.Blockchain.LocationAttestation.LocationAttestation(string,double,double,double,System.DateTimeOffset,string).Altitude" />

`Altitude` [System.Double](https://learn.microsoft.com/en-us/dotnet/api/system.double "System.Double")

Altitude in meters above sea level.

<a name="ResQ.Blockchain.LocationAttestation.LocationAttestation(string,double,double,double,System.DateTimeOffset,string).Timestamp" />

`Timestamp` [System.DateTimeOffset](https://learn.microsoft.com/en-us/dotnet/api/system.datetimeoffset "System.DateTimeOffset")

UTC timestamp of the attestation.

<a name="ResQ.Blockchain.LocationAttestation.LocationAttestation(string,double,double,double,System.DateTimeOffset,string).Signature" />

`Signature` [System.String](https://learn.microsoft.com/en-us/dotnet/api/system.string "System.String")

Cryptographic signature verifying the attestation.

### Example

```csharp theme={null}
var attestation = new LocationAttestation(
    DroneId: "drn-001",
    Latitude: 37.7749,
    Longitude: -122.4194,
    Altitude: 100.5,
    Timestamp: DateTimeOffset.UtcNow,
    Signature: "0x..."
);

var isValid = await neoClient.VerifyLocationAttestationAsync(attestation);
```

### Remarks

Location attestations provide verifiable proof of a drone's position at a specific
time. The signature allows verification that the location data was generated by
the legitimate drone and has not been tampered with.
