Charts Routes Reference Documentation

Todo

Ersetze die HTTP-Domain Extension möglicherweise durch eigene Formatierungen

Intersection Circles

GET /charts/intersection-circles

Get Intersection Circles

Calculates the coordinates of two or three circles to obtain requested overlapping areas.

Query Parameters:
 
  • r1 – number [mandatory] Radius of the first circle.
  • r2 – number [mandatory] Radius of the second circle.
  • r3 – number [optional] Radius of the third circle.
  • area12 – number [mandatory] Overlapping area of the first and the second circle.
  • area13 – number [optional] Overlapping area of the first and the third circle.
  • area23 – number [optional] Overlapping area of the second and the third circle.
Returns:

IntersectionCircles

Status Codes:
  • 200 – Success
  • 401 – Authentication failed
  • 500 – Generic error while calculating circle coordinates

Example

Request

GET /charts/intersection-circles?r1=1650&r2=1043&r3=875&area12=556060&area13=278609&area23=409490&access_token=1234567890 HTTP/1.1
Host: main.medimach-api.io
Accept: application/json

Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

    {
  "circles": [
    {
      "r": 1650,
      "x": 1650,
      "y": 1650
    },
    {
      "r": 1043,
      "x": 3815.261353,
      "y": 1650
    },
    {
      "r": 875,
      "x": 3350.644313,
      "y": 3015.769987
    }
  ],
  "viewSize": {
    "width": 4858.261353,
    "height": 3890.769987
  }
}

Table Of Contents

Previous topic

Charts API Reference Documentation

Next topic

Charts Models & Data Types Documentation

This Page