I built a test interface in order to understand how this is performing.
I created a js fiddle —> Edit fiddle - JSFiddle - Code Playground
feel free to test it
the geocoding service doesn’t work
I add my apikey (I added an input so you can add yours and test it very easily) and I get the following error:
Geocoding failed: {“geocoding”:{“version”:“0.2”,“attribution”:“Terms of Service | openrouteservice param ‘text’: text length, must be >0”,“invalid param ‘text’: text length, must be >0”],“engine”:{“name”:“Pelias”,“author”:“Mapzen”,“version”:“1.0”},“timestamp”:1739210438136},“type”:“FeatureCollection”,“features”:}