Closest METAR Station #451
Replies: 2 comments 6 replies
-
It this what you mean by "I can get all the stations from /point/{point}"? I locate the nearest METAR location by first doing /point/{point} and then fetch the url returned in the observationStations (form of /gridpoints/{wfo}/{x},{y}/stations). The first station returned is my nearest METAR source. Does that not work for you? |
Beta Was this translation helpful? Give feedback.
-
This request is too application-specific to create a cache permutation that would reduce the performance potential of the API. It would be ideal to be on the cloud with overhead to offer this level of custom queries (e.g. GraphQL), but in our current environment every request counts, where once a month we're asked to reconsider the number of permutations on the alerts endpoints. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Trying to figure out a way to get the closest station to a latitude and longitude that reports METAR. I have a system setup on linux that uses the Text Data Server over at aviationweather.gov but it requires a wget and CORS policy prevents an API request. So, I am trying to see if this API will accomplish the same thing.
I can get all the stations from /points/{points} that is in a list of nearest to farthest (I am pretty sure in that order). I can also get a list of METAR stations with /products/types/MTR, but I believe that is all of them. I would really like to just have something like /points/{points}/MTR/stations or something. I think there is a gridpoints one but I am getting returns that are very far from me. I am also having a hard time using the information in the @graph section of some of the API responses (new to json-ld and having hard time finding information on extracting data of these). Any help, directions or links are welcomed. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions