# `client.ResolvePlaceAsync()`

Resolve Place

Returns the full place for a place ID taken from a `/places` suggestion.

On top of the fields carried by the suggestion, the response adds coordinates, language and the underlying dataset record.

Each request decrements your lookup balance. An unknown ID returns `404`.

## Endpoint

`GET /places/{place}`

See the [API reference](/docs/api/resolve-place.md) for this endpoint.

## Signature

```csharp
Task<ResolvePlaceResponse> ResolvePlaceAsync(string place, ResolvePlaceParams? query = null, CancellationToken cancellationToken = default)
```

## Arguments

| Name                | Type                 | Required | Description                                                           |
| ------------------- | -------------------- | -------- | --------------------------------------------------------------------- |
| `place`             | `string`             | yes      | ID of place suggestion                                                |
| `query`             | `ResolvePlaceParams` | no       | Query parameters. Fields under [Query Parameters](#query-parameters). |
| `cancellationToken` | `CancellationToken`  | no       | Cancels the request.                                                  |

## Query Parameters

Set these on the `query` argument. Each property is the name in PascalCase, such as `PostTown` for `post_town`; required fields are constructor arguments.

| Name   | Type     | Required | Description |
| ------ | -------- | -------- | ----------- |
| `tags` | `string` | no       | Tags        |

## Response

`ResolvePlaceResponse`. Fields are properties in PascalCase, such as `response.Result`; fields this SDK version does not know are kept in `AdditionalProperties`. See [responses](/docs/sdks/dotnet/responses.md).

## Errors

An HTTP error throws `ApiException` with the `StatusCode`, the API error `Code` and the raw `Body`. A success response whose body cannot be read throws `UnserializableResponseException`. Network failures and cancellation throw `HttpClient`'s own `HttpRequestException` and `OperationCanceledException`. See [error handling](/docs/sdks/dotnet/errors.md).

## Example

resolve-place.cscsharp

```csharp
using IdealPostcodes;

using var client = new IdealPostcodesClient("ak_test");

var response = await client.ResolvePlaceAsync("geonames_7296662");

var place = response.Result;

Console.WriteLine($"{place.DescriptiveName} ({place.CountryIso})");
Console.WriteLine($"{place.Latitude}, {place.Longitude}");
```
