Detect best matching ressource (taxi / cab usecase)

This forum deals with any kind of routing computation whether it is simple A:B-routing, calculation of isochrones, simple matrix computation or nearest search.
Post Reply
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Detect best matching ressource (taxi / cab usecase)

Post by Bernd Welter »

Cheerio,

these days I've been challenged by several players with some performance topics. Their story was compareable and after some discussions with DEV I am super excited that Max dragged my attention to this approach outside the box.
Here are the constraints:
  • Person needs a taxi at (x,y) as quick as possible
  • Several taxi positions (x,y) are known
  • Distances are compareably low, maybe preselected
  • Both historical and live data are required
  • Quality should match "ExactAtStart" behaviour

When I discussed the story with the partners based on different "dima driven approaches" we ran into different topics:
  • XDima2.CreateDistanceMatrix doesn't support ExactAt..Consideration

Here's the new approach / idea:

RED= 3 potential taxis waiting for a customer.<br />The closest one is picked. No info about the other two taxis returned.
RED= 3 potential taxis waiting for a customer.
The closest one is picked. No info about the other two taxis returned.

Code: Select all

{
  "storedProfile": "car",
  "requestProfile": {
    "routingProfile": {
      "course": {
        "violations": {
          "enabled": false
        }
      }
    },
    "featureLayerProfile": {
      "themes": [
        {
          "id": "PTV_TrafficIncidents",
          "enabled": true
        },
        {
          "id": "PTV_SpeedPatterns",
          "enabled": true
        }
      ]
    }
  },
  "waypoints": [
    {
      "$type": "MultiCoordinateOnRoadWaypoint",
      "coordinates": [
        {
          "x": 13.79165398,
          "y": 51.152859002
        },
        {
          "x": 13.743576969,
          "y": 51.01651402
        },
        {
          "x": 13.730742916,
          "y": 51.098036026
        }
      ]
    },
    {
      "$type": "OffRoadWaypoint",
      "location": {
        "offRoadCoordinate": {
          "x": 13.782697007,
          "y": 50.999312007
        }
      }
    }
  ],
  "resultFields": {
    "polyline": true
  },
  "routeOptions": {
    "timeConsideration": {
      "$type": "ExactTimeConsiderationAtStart"
    }
  }
}
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Post Reply