1. Schemas
GraphHopper Directions API
  • Routing
    • Calculate a route
    • Calculate a route
  • Isochrones
    • Compute an isochrone
  • Matrices
    • Compute a matrix
    • Compute a matrix
    • Submit a matrix computation job
    • Retrieve result of a matrix computation job
  • Map Matching
    • Map-match a GPX file
  • Geocoding
    • Geocoding Endpoint
  • Route Optimization
    • Solve a route optimization problem
    • Submit a route optimization job
    • Retrieve solution of a route optimization job
  • Clustering
    • Solve a clustering problem
    • Submit a clustering job
    • Retrieve solution of a clustering job
  • Custom Profiles
    • Create a custom routing profile
    • List your custom routing profiles
    • Submit a profile creation job
    • Retrieve result of a profile creation job
    • Delete a custom routing profile
  • 数据模型
    • Schemas
      • ClusterResponse
      • Cluster
      • ClusterRequest
      • ClusterConfiguration
      • Clusters
      • ClusterCustomer
      • ClusterCustomerAddress
      • ClusterConfigurationRouting
      • ClusterConfigurationClustering
      • GeocodingResponse
      • GeocodingLocation
      • GeocodingPoint
      • MatrixRequest
      • SymmetricalMatrixRequest
      • MatrixResponse
      • RouteRequest
      • CustomModel
      • CustomModelForProfile
      • ProfileRequest
      • ProfileResponse
      • ProfileGetResponse
      • RouteResponse
      • EncodedLineString
      • BBox
      • FeatureCollection
      • RouteResponsePath
      • ResponseInfo
      • IsochroneResponse
      • IsochroneResponsePolygon
      • LineString
      • Polygon
      • GHError
      • JobId
      • BadRequest
      • ErrorMessage
      • InternalErrorMessage
      • Request
      • Vehicle
      • VehicleProfileId
      • Shift
      • Algorithm
      • Address
      • ResponseAddress
      • SnappedWaypoint
      • DriveTimeBreak
      • TimeWindowBreak
      • VehicleType
      • Service
      • Shipment
      • Pickup
      • Stop
      • TimeWindow
      • PreferredVehicle
      • Configuration
      • Optimization
      • Routing
      • Objective
      • CostMatrix
      • GroupRelation
      • JobRelation
      • Response
      • Solution
      • Detail
      • Route
      • RoutePoint
      • Activity
  1. Schemas

Response

{
    "copyrights": [
        "GraphHopper",
        "OpenStreetMap contributors"
    ],
    "status": "waiting_in_queue",
    "waiting_time_in_queue": 300000,
    "processing_time": 900000,
    "solution": {
        "costs": 0,
        "distance": 1200,
        "time": 0,
        "transport_time": 12000,
        "max_operation_time": 4000,
        "waiting_time": 200,
        "service_duration": 1200,
        "preparation_time": 0,
        "completion_time": 12000,
        "no_vehicles": 10,
        "no_unassigned": 1,
        "routes": [
            {
                "vehicle_id": "driver-stefan",
                "distance": 10000,
                "transport_time": 1800,
                "completion_time": 1800,
                "waiting_time": 0,
                "service_duration": 0,
                "preparation_time": 0,
                "activities": [
                    {
                        "type": "start",
                        "id": "string",
                        "location_id": "string",
                        "address": {
                            "location_id": "550e8400-e29b-11d4-a716-446655440000",
                            "name": "Queens Victoria Street 70, Second Floor, Flat 245",
                            "lon": -0.092869,
                            "lat": 51.512665,
                            "street_hint": "Queens Victoria Street 70",
                            "snapped_waypoint": {
                                "lon": -0.092869,
                                "lat": 51.512665
                            }
                        },
                        "arr_time": 0,
                        "end_time": 0,
                        "end_date_time": "2019-08-24T14:15:22.123Z",
                        "arr_date_time": "2019-08-24T14:15:22.123Z",
                        "waiting_time": 0,
                        "preparation_time": 0,
                        "distance": 0,
                        "driving_time": 0,
                        "load_before": [
                            0
                        ],
                        "load_after": [
                            0
                        ]
                    }
                ],
                "points": [
                    {
                        "type": "string",
                        "coordinates": [
                            {}
                        ]
                    }
                ]
            }
        ],
        "unassigned": {
            "services": [
                "service-1",
                "service-3"
            ],
            "shipments": [
                "shipment-5"
            ],
            "breaks": [
                "string"
            ],
            "details": [
                {
                    "id": "string",
                    "code": 0,
                    "reason": "string"
                }
            ]
        }
    }
}
Built with