Sign in

Compute aggregate

documented

Compute aggregate insights for a defined area.

POST https://places.googleapis.com/v1:computeAggregatePlaces Aggregate APIno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://areainsights.googleapis.com/v1:computeInsights" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "X-Goog-Api-Key: {{MAPS_API_KEY}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"insights": ["{{$INSIGHT_TYPE}}"], "filter": { "locationFilter": { "circle": { "center": { "latLng": { "latitude": {{$LATITUDE}}, "longitude": {{$LONGITUDE}} } }, "radius": {{$RADIUS}} } }, "typeFilter": { "includedTypes": ["{{$INCLUDED_TYPE}}"] }, "operatingStatus": ["{{$OPERATING_STATUS}}"], "priceLevels": ["{{$PRICE_LEVEL}}"], "ratingFilter": { "minRating": {{$MIN_RATING}}, "maxRating": {{$MAX_RATING}} } }}'
Compute aggregate · Google Maps · OpenIntegrations