Geometry parameters with IDs or places to fetch boundaries for
Promise resolving to polygon features representing area boundaries
Key features:
Common use cases:
Returns polygons, not places. Pass the result to GeometriesModule.show(),
not PlacesModule.show(). The geometryId comes from a prior search result.
// Fetch geometry by ID
const cityBoundary = await geometryData({
geometries: ['geometry-id-123']
});
// Fetch multiple geometries at once
const boundaries = await geometryData({
geometries: ['country-id-1', 'city-id-2', 'poi-id-3']
});
// Fetch and merge with place data
const searchResults = await discoverPlaces({ query: 'Amsterdam' });
const withBoundaries = await geometryData({
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
Promise resolving to polygon features representing area boundaries
Key features:
Common use cases:
Returns polygons, not places. Pass the result to GeometriesModule.show(),
not PlacesModule.show(). The geometryId comes from a prior search result.
// Fetch geometry by ID
const cityBoundary = await geometryData({
geometries: ['geometry-id-123']
});
// Fetch multiple geometries at once
const boundaries = await geometryData({
geometries: ['country-id-1', 'city-id-2', 'poi-id-3']
});
// Fetch and merge with place data
const searchResults = await discoverPlaces({ query: 'Amsterdam' });
const withBoundaries = await geometryData({
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.