Svir clustering

Algorithmia Platform License

Run an Example

[
  [
    {
      "location": {
        "latitude": 49.6,
        "longitude": 27.5
      },
      "capacityToDeliver": 40
    },
    {
      "location": {
        "latitude": 47.3,
        "longitude": 25.8
      },
      "capacityToDeliver": 55
    }
  ],
  [
    {
      "location": {
        "latitude": 48.6,
        "longitude": 24.3
      },
      "capacityToDeliver": 30
    },
    {
      "location": {
        "latitude": 45.6,
        "longitude": 19.5
      },
      "capacityToDeliver": 51
    }
  ],
  [
    {
      "location": {
        "latitude": 44.6,
        "longitude": 28.5
      },
      "capacityToDeliver": 52
    },
    {
      "location": {
        "latitude": 44.8,
        "longitude": 28.6
      },
      "capacityToDeliver": 24
    }
  ],
  [
    {
      "location": {
        "latitude": 45.6,
        "longitude": 29.5
      },
      "capacityToDeliver": 40
    }
  ]
]

Install & Use

Use

curl -X POST -d '{
    "carCapacity": 100,
    "warehouseLocation": {
        "latitude": 45.5,
        "longitude": 49.5
    },
    "markets": [
        {
            "location": {
                "latitude": 45.6,
                "longitude": 19.5
            },
            "capacityToDeliver": 51
        },
        {
            "location": {
                "latitude": 45.6,
                "longitude": 29.5
            },
            "capacityToDeliver": 40
        },
        {
            "location": {
                "latitude": 44.6,
                "longitude": 28.5
            },
            "capacityToDeliver": 52
        },
        {
            "location": {
                "latitude": 49.6,
                "longitude": 27.5
            },
            "capacityToDeliver": 40
        },
        {
            "location": {
                "latitude": 47.3,
                "longitude": 25.8
            },
            "capacityToDeliver": 55
        },
        {
            "location": {
                "latitude": 48.6,
                "longitude": 24.3
            },
            "capacityToDeliver": 30
        },
        {
            "location": {
                "latitude": 44.8,
                "longitude": 28.6
            },
            "capacityToDeliver": 24
        }
    ]
}' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/uaspro/Svirclustering/0.3.1