POST Route Endpoint with custom model

We use POST route endpoint with custom model to restrict some areas.
What we came through lately is that the routing endpoint failed with the following message “'Custom Model too big”.
The problem without custom model is solvable and we get back a route. Is there any idea how we could solve this ?

The custom model is currently restricted to 100000 characters. Do you expect your model to be longer than this? If you are using large areas you might be able to simplify the border geometry to reduce the length of the model, using something like this for example: GitHub - max-mapper/simplify-geojson: apply the ramer-douglas-peucker line simplification to geojson features or feature collections in JS or on the CLI

1 Like