> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.cail.health/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.cail.health/_mcp/server.

# Resolve a jurisdiction by coordinates

GET https://staging.cail.health/v1/jurisdictions/resolve

Resolves a jurisdiction by WGS84 latitude/longitude. Returns the jurisdiction identifier and a localised display name when the coordinates fall within a served boundary. Returns 404 when no jurisdiction covers the location. Use this endpoint before starting a navigation session if the member client wants to confirm a coverage area before the session is pinned.

Reference: https://docs.cail.health/api-references/api-reference/understand-coverage/resolve

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: cail-api
  version: 1.0.0
paths:
  /v1/jurisdictions/resolve:
    get:
      operationId: resolve
      summary: Resolve a jurisdiction by coordinates
      description: >-
        Resolves a jurisdiction by WGS84 latitude/longitude. Returns the
        jurisdiction identifier and a localised display name when the
        coordinates fall within a served boundary. Returns 404 when no
        jurisdiction covers the location. Use this endpoint before starting a
        navigation session if the member client wants to confirm a coverage area
        before the session is pinned.
      tags:
        - subpackage_understandCoverage
      parameters:
        - name: latitude
          in: query
          description: Latitude (WGS84) to resolve to a jurisdiction.
          required: true
          schema:
            type: number
            format: double
        - name: longitude
          in: query
          description: Longitude (WGS84) to resolve to a jurisdiction.
          required: true
          schema:
            type: number
            format: double
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: The resolved jurisdiction.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResolveJurisdictionResponse'
servers:
  - url: https://staging.cail.health
    description: https://staging.cail.health
components:
  schemas:
    ResolveJurisdictionResponse:
      type: object
      properties:
        jurisdictionId:
          type: string
          description: Stable identifier of the resolved jurisdiction.
        displayName:
          type: string
          description: >-
            Human-readable display name of the jurisdiction, flattened to the
            request locale.
      required:
        - jurisdictionId
        - displayName
      title: ResolveJurisdictionResponse
  securitySchemes:
    firebaseBearer:
      type: http
      scheme: bearer

```

## Examples



**Response**

```json
{
  "jurisdictionId": "jur_uk_eng",
  "displayName": "NHS England"
}
```

**SDK Code**

```python Coordinates in London resolve to NHS England
import requests

url = "https://staging.cail.health/v1/jurisdictions/resolve"

querystring = {"latitude":"51.5","longitude":"-0.128"}

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Coordinates in London resolve to NHS England
const url = 'https://staging.cail.health/v1/jurisdictions/resolve?latitude=51.5&longitude=-0.128';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Coordinates in London resolve to NHS England
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://staging.cail.health/v1/jurisdictions/resolve?latitude=51.5&longitude=-0.128"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Coordinates in London resolve to NHS England
require 'uri'
require 'net/http'

url = URI("https://staging.cail.health/v1/jurisdictions/resolve?latitude=51.5&longitude=-0.128")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Coordinates in London resolve to NHS England
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://staging.cail.health/v1/jurisdictions/resolve?latitude=51.5&longitude=-0.128")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Coordinates in London resolve to NHS England
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://staging.cail.health/v1/jurisdictions/resolve?latitude=51.5&longitude=-0.128', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Coordinates in London resolve to NHS England
using RestSharp;

var client = new RestClient("https://staging.cail.health/v1/jurisdictions/resolve?latitude=51.5&longitude=-0.128");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Coordinates in London resolve to NHS England
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://staging.cail.health/v1/jurisdictions/resolve?latitude=51.5&longitude=-0.128")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```