Widget Traffic
Материал из SmartPlayer
Description
A widget for displaying the current traffic congestion in a specific city.
Settings == =
Operation in a Restricted Network === This widget retrieves data from several sources:
- https://api.sypexgeo.net/ - used to obtain geolocation (city) based on the IP address of the device where the widget is loaded.
- https://api-maps.yandex.ru - fetches traffic data from Yandex Maps.
How to check if access to the resource is available from a restricted network
To check access, connect a computer to the internal network and run the following command in the terminal: curl https://api-maps.yandex.ru. You should receive a response from the service, which will return data (any data is sufficient), the main thing is that the connection is not dropped due to timeout/forbidden (depending on the specific restricted network settings).