Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No error message if bcircles or bpolys boundaries don't lie within the underlying data-extract polygon #201

Closed
bonaparten opened this issue Jun 10, 2021 · 0 comments · Fixed by #211
Assignees
Labels
bug Something isn't working
Milestone

Comments

@bonaparten
Copy link
Contributor

bonaparten commented Jun 10, 2021

Bug Description

In cases of requests with a boundary type other than a bounding box, the ohsome API doesn't return an error message if the provided boundary parameter does not lie completely within the underlying data-extract polygon. Instead, it returns a 200 HTTP response code with response values equals to 0 or responses with an empty GeoJSON feature collection.

//edit the issue refers to only cases in which one pair coordinates (bcircles) or a single polygon (bpolys) are given. Otherwise, the ohsome API returns a 404 HTTP response code.

General Information

  • Version of the ohsome API: 1.4.0
  • Which API instance was requested: local instance with an h2 file
  • Affected endpoint(s): all
  • URL of your request:
    request using bcircles
    request using bbpolys
  • Used HTTP method: GET and POST
  • Utilized tool/library for the request: cURL, Swagger

Expected Behaviour

The ohsome API should return an error for every provided boundary parameter if the boundary does not lie completely within the underlying data-extract polygon.

@bonaparten bonaparten added the bug Something isn't working label Jun 10, 2021
@bonaparten bonaparten changed the title No error message if the bcircles or bpolys boundaries don't lie within the underlying data-extract polygon No error message if bcircles or bpolys boundaries don't lie within the underlying data-extract polygon Jun 10, 2021
@bonaparten bonaparten added this to To do in ohsome API general via automation Jun 10, 2021
@bonaparten bonaparten added this to the 1.6 milestone Jul 6, 2021
@bonaparten bonaparten self-assigned this Jul 6, 2021
ohsome API general automation moved this from To do to Done Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
1 participant