AHOY Centroid API (1.0)

Download OpenAPI specification:Download

Centroid API

Authentication

apiKeyHeader

Security Scheme Type: API Key
Header parameter name: api-key

Calculate Centroid

endpoint for calculating the Centroid in a network graph

Authorizations:
apiKeyHeader
Request Body schema: application/json
Array of objects

list of points to compute the centroid for

numberofcentroid
integer

Number of clusters that needs to created

traveltimeinmints
integer <int64>

from the center return only those points that can be reached with this time period

departureTime
integer <int64>

Departure time, it’s in millisecond also UTC format

Responses

Request samples

Content type
application/json
{
  • "locations": [
    ],
  • "numberofcentroid": 2,
  • "traveltimeinmints": 600,
  • "departureTime": 1652954924000
}

Response samples

Content type
application/json
[
  • {
    },
  • {
    }
]