---
title: "initWithName:coordinate:"
framework: arkit
role: symbol
role_heading: Instance Method
path: "arkit/argeoanchor/initwithname:coordinate:"
---

# initWithName:coordinate:

Initializes a named location anchor with the given coordinates.

## Declaration

```occ
- (instancetype) initWithName:(NSString *) name coordinate:(CLLocationCoordinate2D) coordinate;
```

## Parameters

- `name`: Name of the anchor.
- `coordinate`: Lattitude and longitude of the anchor’s geographic location.

## Discussion

Discussion Because this initializer does not take an altitude argument, ARKit will determine (and set) the anchor’s altitude at runtime.

## See Also

### Creating a Geo Anchor

- [initWithCoordinate:](arkit/argeoanchor/initwithcoordinate:.md)
- [initWithCoordinate:altitude:](arkit/argeoanchor/initwithcoordinate:altitude:.md)
- [init(name:coordinate:altitude:)](arkit/argeoanchor/init(name:coordinate:altitude:)-8sbh4.md)
