Skip to content

Instantly share code, notes, and snippets.

@yassineAlouini
Created October 25, 2018 15:27
Show Gist options
  • Save yassineAlouini/16b5f64967a7eeb7ec9f55610a78be67 to your computer and use it in GitHub Desktop.
Save yassineAlouini/16b5f64967a7eeb7ec9f55610a78be67 to your computer and use it in GitHub Desktop.
Get GeoJSON data from a URL.
import geopandas as gpd
import requests
def get_data_from_url(url):
data = requets.get(url).json()
return gpd.GeoDataFrame.from_features(data)
@arnaud-qucit
Copy link

Un petit 's' à requets :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment