Description
Hello. thank you for making non-api-key db in advance. I'm so glad that I can embed weather tab in my app so easily.
Describe the bug
I got lat,long
from chrome locator and tried get response weatherdbi:
// in javascript
const longitude = position.coords.longitude; // chrome function
const latitude = position.coords.latitude; // chrome function
const url = `https://weatherdbi.herokuapp.com/data/weather/${latitude},${longitude}`;
but I got failed response with the location nearby my home. After that day, I checked the same code in other place and got the right response. So, for more infomation, I checked these regions in google map that they are indicating certain place in South Korea. And here's the things..
To Reproduce
Four examples with very small changes ~ 0.1 changes in longitude:
-
https://weatherdbi.herokuapp.com/data/weather/37.407812,127.171824
Response -> region: Jungwon-gu, Seongnam-si, Gyeonggi-do, South Korea -
https://weatherdbi.herokuapp.com/data/weather/37.407812,127.071824
Response -> message: invalid query -
https://weatherdbi.herokuapp.com/data/weather/37.407812,126.971824
Response -> message: invalid query -
https://weatherdbi.herokuapp.com/data/weather/37.407812,126.871824
Response -> region: Hagon-dong, Gwangmyeong-si, Gyeonggi-do, South Korea
It doesn't seem to work in certain sections. It's a difficult problem to guess because I can't look inside the code. Can you figure it out? If you can catch the reason, please fix it for useful weather database 😎