{"version":"1.0","type":"rich","title":"Zoom to your current location in QGIS (assuming EPSG 4326)","description":"This example shows QGIS automatically centering its map canvas on the viewer’s current geographic location. The map extent is set to a fixed 0.01-degree square around the coordinates obtained from the IP geolocation service ipinfo.io. The code uses the Python `pycurl` library to fetch the JSON response, `json` to parse the latitude and longitude, and the QGIS Python API (`qgis.utils.iface.mapCanvas()` with `setExtent` and `QgsRectangle`) to update the view. No additional mapping libraries are used beyond QGIS’s native canvas.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-e674a4e61cd0432ee429?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}