Skip to content
GitHubXDiscordRSS

PlaceIndex

Learn how to create, update, and manage AWS Location PlaceIndexs using Alchemy Cloud Control.

The PlaceIndex resource lets you manage AWS Location PlaceIndexs for geocoding and reverse geocoding address data.

Create a basic PlaceIndex with required properties and one optional description.

import AWS from "alchemy/aws/control";
const placeIndex = await AWS.Location.PlaceIndex("myPlaceIndex", {
IndexName: "MyGeocodingIndex",
Description: "A place index for geocoding addresses",
DataSource: "Esri",
PricingPlan: "RequestBasedUsage",
Tags: [{ Key: "Environment", Value: "Development" }]
});

Configure a PlaceIndex with a custom data source configuration and pricing plan.

import AWS from "alchemy/aws/control";
const customPlaceIndex = await AWS.Location.PlaceIndex("customPlaceIndex", {
IndexName: "CustomGeocodingIndex",
Description: "A custom place index with specific settings",
DataSource: "Here",
PricingPlan: "RequestBasedUsage",
DataSourceConfiguration: {
IntendedUse: "Consumer",
DataSource: "Here"
},
Tags: [{ Key: "Project", Value: "MappingApp" }]
});

Create a PlaceIndex while including multiple tags for better resource management and identification.

import AWS from "alchemy/aws/control";
const taggedPlaceIndex = await AWS.Location.PlaceIndex("taggedPlaceIndex", {
IndexName: "TaggedGeocodingIndex",
Description: "A place index with multiple tags",
DataSource: "Esri",
PricingPlan: "RequestBasedUsage",
Tags: [
{ Key: "Department", Value: "Geospatial" },
{ Key: "Owner", Value: "Alice" }
]
});

If you want to adopt an existing PlaceIndex instead of creating a new one, you can set the adopt property to true.

import AWS from "alchemy/aws/control";
const adoptedPlaceIndex = await AWS.Location.PlaceIndex("existingPlaceIndex", {
IndexName: "ExistingGeocodingIndex",
DataSource: "Esri",
adopt: true
});