I tried this javascript( below) for BBOX 37.997815, -122.53684 and 37.957815, -122.55684 POINT 37.997815, -122.53684
and
for Lat and Long switched.
(Just north of San Francisco)
Although I got a 200 success there were no POIS returned.
The example given by you worked fine with benches , waste baskets and doctors etc… returned:-
JAVASCRIPT
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
let request = new XMLHttpRequest();
request.open(‘POST’, “https://api.openrouteservice.org/pois”);
request.setRequestHeader(‘Accept’, ‘application/json, application/geo+json, application/gpx+xml, img/png; charset=utf-8’);
request.setRequestHeader(‘Content-Type’, ‘application/json’);
request.setRequestHeader(‘Authorization’, ‘5b3ce3597851110001cf6248e93687af7af342faa328c9b4e3c7b3ad’);
request.onreadystatechange = function () {
if (this.readyState === 4) {
console.log(‘Status:’, this.status);
console.log(‘Headers:’, this.getAllResponseHeaders());
console.log(‘Body:’, this.responseText);
}
};
const body = ‘{“request”:“pois”,“geometry”:{“bbox”:[[8.8034,53.0756],[8.7834,53.0456]],“geojson”:{“type”:“Point”,“coordinates”:[8.8034,53.0756]},“buffer”:200}}’;
request.send(body);
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||