Windy Webcam API V3 - URL issue + Bounding Box Validation
-
Sorry for double post I missed that there is a area specific to webcam API.
I just upgraded my code from Windy Webcam API V2 to V3 but run into the following issue:
I am requesting the
urlssection but the URLs provided (e.g. this one here https://webcams.windy.com/webcams/1680794205 show a404error page. This seem to be valid for allurlsreturned (not just a problem for a single webcam).My second issue is with using the
/map/clusterendpoint. When providing my bounding box (right out of Leaflet) and the Leaflet zoom level I get theMaximal distance between west and east longitudes on the zoom level 12, should be 0.17578125!error. The exact same data worked on V2 API. I pretty much have to remove two zoom levels (e.g.12I need to request as10) for the API call to work (it feels like that ether zoom level has changed and/or the validation is slightly to strict. My full API query is for example:https://api.windy.com/webcams/api/v3/map/clusters?northLat=49.24855560361254&eastLon=-122.48485827914439&southLat=49.17813370208243&westLon=-122.89993548861705&zoom=12&include=location,images,player,urlsHope someone can help out with the
urls(as that is currently broken) and provide some insight in the clusters API. -
Hi @fkrauthan,
thanks for your
urlsbug report, it should be fixed right now.About the second one, yes you are right, we completely changed our bounding box limits in V3 for
/map/cluster.
In the new version, the cluster is based on Google map tiler
-
You can read more at Migration from Webcams API Version V2 to V3 guide.
Or test it by yourself at webcam API docs
-
@caldrjir Perfect I can confirm the URL is now working. However it seems like the new cluster endpoint returns a lot less points on the map than previously.
Would be great if that potentially could be fine-tuned a bit more.