> **Experimental**
>
> `@aws-cdk/aws-location-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# DataSource

Data source for a place index.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/util.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/@aws-cdk/aws-location-alpha/lib/util.ts#L15)

## Example

TypeScript:

```ts
new location.PlaceIndex(this, 'PlaceIndex', {
  placeIndexName: 'MyPlaceIndex', // optional, defaults to a generated name
  dataSource: location.DataSource.HERE, // optional, defaults to Esri
});
```

Python:

```python
location.PlaceIndex(self, "PlaceIndex",
    place_index_name="MyPlaceIndex",  # optional, defaults to a generated name
    data_source=location.DataSource.HERE
)
```

Java:

```java
PlaceIndex.Builder.create(this, "PlaceIndex")
        .placeIndexName("MyPlaceIndex") // optional, defaults to a generated name
        .dataSource(DataSource.HERE)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.Location.Alpha
new PlaceIndex(this, "PlaceIndex", new PlaceIndexProps {
    PlaceIndexName = "MyPlaceIndex",  // optional, defaults to a generated name
    DataSource = DataSource.HERE
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdklocationalpha/v2
location.NewPlaceIndex(this, jsii.String("PlaceIndex"), &PlaceIndexProps{
	PlaceIndexName: jsii.String("MyPlaceIndex"),
	 // optional, defaults to a generated name
	DataSource: location.DataSource_HERE,
})
```

## Members

| Member | Description |
| --- | --- |
| `ESRI` | Esri. |
| `GRAB` | Grab provides routing functionality for Southeast Asia. |
| `HERE` | HERE. |

## Referenced by

- [`PlaceIndexProps`](/v2/docs/@aws-cdk_aws-location-alpha.PlaceIndexProps).dataSource
- [`RouteCalculatorProps`](/v2/docs/@aws-cdk_aws-location-alpha.RouteCalculatorProps).dataSource
