Taxi Matching

A taxi - customer matching algorithm

Algorithmia Platform License · Calls Other Algorithms

Run an Example

[
  {
    "customer": {
      "rating": 4.88,
      "name": "Customer 2",
      "coordinates": {
        "lat": 47.608575,
        "long": -122.324481
      }
    },
    "car": {
      "carModel": "Audi A6",
      "plateNumber": "ABC762",
      "driverName": "Driver 1",
      "coordinates": {
        "lat": 47.607731,
        "long": -122.323537
      },
      "rating": 4.88
    }
  },
  {
    "customer": {
      "rating": 4.88,
      "name": "Customer 1",
      "coordinates": {
        "lat": 47.601023,
        "long": -122.333751
      }
    },
    "car": {
      "carModel": "Tesla Model S",
      "plateNumber": "UMY341",
      "driverName": "Driver 3",
      "coordinates": {
        "lat": 47.601324,
        "long": -122.33182
      },
      "rating": 4.95
    }
  },
  {
    "customer": {
      "rating": 4.55,
      "name": "Customer 4",
      "coordinates": {
        "lat": 47.663577,
        "long": -122.379627
      }
    },
    "car": {
      "carModel": "Porsche Macan",
      "plateNumber": "HJK827",
      "driverName": "Driver 4",
      "coordinates": {
        "lat": 47.66728,
        "long": -122.383575
      },
      "rating": 4.99
    }
  },
  {
    "customer": {
      "rating": 4.55,
      "name": "Customer 3",
      "coordinates": {
        "lat": 47.616474,
        "long": -122.347827
      }
    },
    "car": {
      "carModel": "Porsche Macan",
      "plateNumber": "HJK827",
      "driverName": "Driver 2",
      "coordinates": {
        "lat": 47.618209,
        "long": -122.350101
      },
      "rating": 4.99
    }
  }
]

Install & Use

Use

curl -X POST -d '{
    "cars": [
        {
            "plateNumber": "UMY341",
            "driverName": "Driver 3",
            "carModel": "Tesla Model S",
            "rating": 4.95,
            "coordinates": {
                "lat": 47.601324,
                "long": -122.331820
            }
        },
        {
            "plateNumber": "ABC762",
            "driverName": "Driver 1",
            "carModel": "Audi A6",
            "rating": 4.88,
            "coordinates": {
                "lat": 47.607731,
                "long": -122.323537
            }
        },
        {
            "plateNumber": "HJK827",
            "driverName": "Driver 2",
            "carModel": "Porsche Macan",
            "rating": 4.99,
            "coordinates": {
                "lat": 47.618209,
                "long": -122.350101
            }
        },
        {
            "plateNumber": "HJK827",
            "driverName": "Driver 4",
            "carModel": "Porsche Macan",
            "rating": 4.99,
            "coordinates": {
                "lat": 47.667280,
                "long": -122.383575
            }
        },
        {
            "plateNumber": "HJK827",
            "driverName": "Driver 5",
            "carModel": "Porsche Macan",
            "rating": 4.99,
            "coordinates": {
                "lat": 47.670286,
                "long": -122.306843
            }
        }
    ],
    "customers": [
        {
            "name": "Customer 1",
            "rating": 4.88,
            "coordinates": {
                "lat": 47.601023,
                "long": -122.333751
            }
        },
        {
            "name": "Customer 2",
            "rating": 4.88,
            "coordinates": {
                "lat": 47.608575,
                "long": -122.324481
            }
        },
        {
            "name": "Customer 3",
            "rating": 4.55,
            "coordinates": {
                "lat": 47.616474,
                "long": -122.347827
            }
        },
        {
            "name": "Customer 4",
            "rating": 4.55,
            "coordinates": {
                "lat": 47.663577,
                "long": -122.379627
            }
        }
    ]
}' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/matching/TaxiMatching/0.1.2