Opening files from a simple using web request.

The basic approach is here that you have a URL (Web address) that points to the location of some geospatial data file. Always be careful when opening data from the internet, although I have not yet heard about any weaknesses in Python being exploited. The most common files that can be opened directly from a web store are GeoJSON and KML for vector data and TIFF files for raster data. For an overview of geospatial file types, see the Table of common geospatial data formats.

In this example, I will use the library requests to handed the data loading and the mapping library Folium

You can access the notebook on GitHub here https://github.com/geoinformatics-online/notebooks/blob/main/load_geojson_from_a_web_adress.ipynb and from there run it in Colab

load_geojson_from_a_web_adress