Skip to content

SOS stations REST API bbox filter doesn't work/gives status 400 #1

@Ventis

Description

@Ventis

Hi,

I'm trying to use bounding boxes to filter the stations retrieved by doing a GET request to https://geo.irceline.be/sos/api/v1/stations

The docs mention you can use a BBOX to filter the retrieved stations:
image

However, no matter how I structure the request I only get 400 statusses with a description "The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing)."

The request I'm trying pertains to a BBOX around Bruges:

{ "ll":{ "type":"Point", "coordinates":[ 3.044164, 51.169179 ] }, "ur":{ "type":"Point", "coordinates":[ 3.285440, 51.324772 ] } } 

No docs also mention all parameters need to be URI encoded and of course for a query param that requires a JSON object I did that too.
The request failing: https://geo.irceline.be/sos/api/v1/stations?bbox=%7B%0A%20%20%20%22ll%22%3A%7B%0A%20%20%20%20%20%20%22type%22%3A%22Point%22%2C%0A%20%20%20%20%20%20%22coordinates%22%3A%5B%0A%20%20%20%20%20%20%20%20%203.044164%2C%0A%20%20%20%20%20%20%20%20%2051.169179%0A%20%20%20%20%20%20%5D%0A%20%20%20%7D%2C%0A%20%20%20%22ur%22%3A%7B%0A%20%20%20%20%20%20%22type%22%3A%22Point%22%2C%0A%20%20%20%20%20%20%22coordinates%22%3A%5B%0A%20%20%20%20%20%20%20%20%203.285440%2C%0A%20%20%20%20%20%20%20%20%2051.324772%0A%20%20%20%20%20%20%5D%0A%20%20%20%7D%0A%7D

Can anybody help me out, or is this functionality just broken on the irceline SOS REST API?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions