Chat with us, powered by LiveChat

Navigation

Here's how to generate a compliant navigation route with the Lorry Route API.

Generate Routes

POST /api/api_keys/generate_routes

Description

Generate route from a latitude and longitude input.

Parameters

Type

Name

Schema

Body

payload required

GenerateRoutePayload

Payload

Main

Name

Description

Schema

arrival
required

Example : { "lat" : 0.7613469782703781, "lon" :  0.683180222799447}

arrival

departure
required

Example : { "lat" : 0.41772826964567955, "lon" : 0.04438711171760036 }

departure

dimensions
required

Example : { "height" : 0.8951580166483727, "length" : 0.6008955498849374, "weight" :0.2875118378969445, "width" : 0.7620272627172439 }

dimensions

geometries
required

Example : "Maxime possimus aliquid quidem consequuntur."

string

time_end
optional

Example : "2002-07-12T05:18:07Z"

string (date-time)

time_start
optional

Example : "1989-05-02T08:17:29Z"

string (date-time)

Arrival

Name

Description

Schema

lat
optional

Example : 0.7613469782703781

number (double)

lon
optional

Example : 0.683180222799447

number (double)

Departure

Name

Description

Schema

lat
optional

Example : 0.41772826964567955

number (double)

lon
optional

Example : 0.04438711171760036

number (double)

Dimensions

Name

Description

Schema

height
optional

Example : 0.8951580166483727

number (double)

length
optional

Example : 0.6008955498849374

number (double)

weight
optional

Example : 0.2875118378969445

number (double)

width
optional

Example : 0.7620272627172439

number (double)

Responses

HTTP Code

Description

Schema

200

OK

Generated_route

400

Bad Request

error

422

Unprocessable Entity

error

500

Internal Server Error

error

Example HTTP request

Request body

{
   "arrival" : {
     "lat" : 0.7613469782703781,
     "lon" : 0.683180222799447
   },
   "departure" : {
     "lat" : 0.41772826964567955,
     "lon" : 0.04438711171760036
   },
   "dimensions" : {
     "height" : 0.8951580166483727,
     "length" : 0.6008955498849374,
     "weight" : 0.2875118378969445,
     "width" : 0.7620272627172439
   },
   "geometries" : "Maxime possimus aliquid quidem consequuntur.",
   "time_end" : "2002-07-12T05:18:07Z",
   "time_start" : "1989-05-02T08:17:29Z"
}

Example HTTP response

Response 200

{
"data" : {
     "Incidunt dolores iusto debitis temporibus tempore modi." : 0.2519597674097817
   }
}

Get navigation restrictions for a POI

POST /api/poi

Description

Get restrictions for a navigational point.

Parameters

Type

Name

Schema

Body

payload required

PoiRestrictionPayload

Payload

Name

Description

Schema

lat
required

Example : 0.136389235187398

number (double)

lon
required

Example : 0.808590706680539

number (double)

type
required

Example : [ 40 ]

< integer (int64) >
array

"Type" can be 30/40/50/60 for weight/height/length/width

Responses

HTTP Code

Description

Schema

200

OK

Poi_restriction_res ponse

400

Bad Request

error

404

Not Found

error

500

Internal Server Error

error

Example HTTP request

Request body

{
   "lat" : 0.136389235187398,
   "lon" : 0.808590706680539,
   "type" : [ 40 ]
}

Example HTTP response

Response 200

{
   "restrictions" : [ {
     "info" : "Quo qui et sit quia voluptatem.",
     "lat" : 0.5218268582456355,
     "lon" : 0.7363087008278921,
     "maximum" : 0.07118492206591481,
     "postcode" : "Minima voluptates sunt voluptatem ipsa.",
     "street" : "Eligendi eos atque maxime et.",
     "type" : 6382176316730312000
   }, {
     "info" : "Quo qui et sit quia voluptatem.",
     "lat" : 0.5218268582456355,
     "lon" : 0.7363087008278921,
     "maximum" : 0.07118492206591481,
     "postcode" : "Minima voluptates sunt voluptatem ipsa.",
     "street" : "Eligendi eos atque maxime et.",
     "type" : 6382176316730312000
}] }