Find centroid(s)

Find the aggregated centroid, or disaggregated centroids, of a set of regions. When the set of regions are "aggregated", all regions will be treated as if they were "combined", or "aggregated" into one region. Only a single pair of longitude/latitude coordinates will be returned for the entire aggregated region. When the set of regions are "disaggregated", the centroid for each region will be calculated "separately", or "disaggregated". A pair of longitude/latitude coordinates will be returned for each region individually.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Country abbreviation.

string
required

Data version for the country.

string
required

A country's region level.

Body Params
codes
array of strings or integers
required
length ≥ 1
A list of codes*
boolean
Defaults to true
  • When aggregate is true, all areas will be treated as if they were "combined", or "aggregated" into one area, and only a single pair of longitude/latitude coordinates will be returned.

  • When aggregate is false, the centroid for each area will be calculated "separately", or "disaggregated", and a pair of longitude/latitude coordinates will be returned for each area specified in the request.

Responses

Language
Credentials
OAuth2
Missing 1 required scope
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json