Geometry parameters with IDs or places to fetch boundaries for
OptionalcustomTemplate: Partial<GeometryDataTemplate>Advanced customization for request/response handling
Promise resolving to polygon features representing area boundaries
Key features:
Common use cases:
// Fetch geometry by ID
const cityBoundary = await geometryData({
key: 'your-api-key',
geometries: ['geometry-id-123']
});
// Fetch multiple geometries at once
const boundaries = await geometryData({
key: 'your-api-key',
geometries: ['country-id-1', 'city-id-2', 'poi-id-3']
});
// Fetch and merge with place data
const searchResults = await search({ query: 'Amsterdam' });
const withBoundaries = await geometryData({
key: 'your-api-key',
geometries: searchResults // Places with geometry IDs
});
// Result includes both place properties and polygon boundaries
Retrieve polygon geometries representing geographic area boundaries.
The Geometry Data service returns coordinate sets that define the outlines of geographic areas such as cities, countries, administrative regions, or POI footprints. These polygons enable visualization of area boundaries, spatial analysis, and geofencing applications.
Geometry parameters with IDs or places to fetch boundaries for
OptionalcustomTemplate: Partial<GeometryDataTemplate>Advanced customization for request/response handling
Promise resolving to polygon features representing area boundaries
Key features:
Common use cases:
// Fetch geometry by ID
const cityBoundary = await geometryData({
key: 'your-api-key',
geometries: ['geometry-id-123']
});
// Fetch multiple geometries at once
const boundaries = await geometryData({
key: 'your-api-key',
geometries: ['country-id-1', 'city-id-2', 'poi-id-3']
});
// Fetch and merge with place data
const searchResults = await search({ query: 'Amsterdam' });
const withBoundaries = await geometryData({
key: 'your-api-key',
geometries: searchResults // Places with geometry IDs
});
// Result includes both place properties and polygon boundaries
Retrieve polygon geometries representing geographic area boundaries.
The Geometry Data service returns coordinate sets that define the outlines of geographic areas such as cities, countries, administrative regions, or POI footprints. These polygons enable visualization of area boundaries, spatial analysis, and geofencing applications.