json-server icon indicating copy to clipboard operation
json-server copied to clipboard

gte lte with minus values

Open audrew opened this issue 4 years ago • 0 comments

I have latitude and longitude with values of minus and I want to make a request with lte or gte parameters, but it doesn't seem to work. Here is an example of requests:

https://jsonServer.com/api/v1/request?lat_gte=51.00000&lat_lte=52.00000&lon_lte=-2.00000&lon_gte=-1.00000

longitude should give me between -1 and -2, but it doesn't return the right results. But if I use this example:

https://jsonServer.com/api/v1/request?lat_gte=51.00000&lat_lte=52.00000&lon_lte=-110.00000&lon_gte=-100.00000

it returns the right results because lon_lte and lon_gte is more than -100... I am not really sure why its happening, maybe someone knows the solution for that?

audrew avatar Jan 10 '22 08:01 audrew