Created
October 25, 2018 15:27
-
-
Save yassineAlouini/16b5f64967a7eeb7ec9f55610a78be67 to your computer and use it in GitHub Desktop.
Get GeoJSON data from a URL.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import geopandas as gpd | |
import requests | |
def get_data_from_url(url): | |
data = requets.get(url).json() | |
return gpd.GeoDataFrame.from_features(data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Un petit 's' à requets :)