Opt-in Features

The Routehappy API endpoint provides users with the ability to enable new opt-in features on demand, which enrich the response with new data.

Enabling opt-in features does not affect any previous features within the API - it only builds on top of the already existing functionalities by giving clients the control over when they enable these new functionalities.

Clients can enable new features by using the "features" field in the control object of the API request, and they will only receive the respective feature-related content once they have explicitly enabled the corresponding feature:

Copy
Copied
"control": {
  "features": [
    "<feature name>"
  ]
}