> ## 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.Simulation.ScenarioRunner.ValidateLocation(ResQ.Core.Location,string)

### [ResQ.Simulation](./ResQ.Simulation.md "ResQ.Simulation").[ScenarioRunner](./ResQ.Simulation.ScenarioRunner.md "ResQ.Simulation.ScenarioRunner")

## ScenarioRunner.ValidateLocation(Location, string) Method

Validates location coordinates are within valid GPS bounds.

```csharp theme={null}
private static void ValidateLocation(ResQ.Core.Location location, string paramName);
```

#### Parameters

<a name="ResQ.Simulation.ScenarioRunner.ValidateLocation(ResQ.Core.Location,string).location" />

`location` [ResQ.Core.Location](https://learn.microsoft.com/en-us/dotnet/api/resq.core.location "ResQ.Core.Location")

The location to validate.

<a name="ResQ.Simulation.ScenarioRunner.ValidateLocation(ResQ.Core.Location,string).paramName" />

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

Name of the parameter for error messages.

#### Exceptions

[System.ArgumentNullException](https://learn.microsoft.com/en-us/dotnet/api/system.argumentnullexception "System.ArgumentNullException")\
Thrown when location is null.

[System.ArgumentOutOfRangeException](https://learn.microsoft.com/en-us/dotnet/api/system.argumentoutofrangeexception "System.ArgumentOutOfRangeException")\
Thrown when coordinates are outside valid ranges.
