Not sure that is a bug or a feature, so before open ans issue on github, i ask here.
When requesting an route with elevation true, the bbox is in 3D:
bbox: [lon, lat, ele, lon, lat, ele]
So it isn’t easy to use bbox directly to fit the map to the extend. We need to delete elevation before.
It should be always in 2D
bbox: [lon, lat, lon, lat], no?