Processing JSON data into variables (in Python) - Lesson 1

preview_player
Показать описание
Taking data from a geoJSON data source and converting it into data stored in variables.

Resources:

Source Code:
import json #imports the json library so we can read the data as a json file

for feature in jsonObject["features"]:

# print(feature["properties"]["LAT"])
# print(feature["properties"]["LONG"])
# print(feature["properties"]["DESCRIPTION"])
# print(feature["properties"]["SIGNED_CLEARANCE_MIN"])
# print(" ")

lat = (feature["properties"]["LAT"])
long = (feature["properties"]["LONG"])
name = (feature["properties"]["DESCRIPTION"])
height = (feature["properties"]["SIGNED_CLEARANCE_MIN"])

print (lat)
print (long)
print (name)
print (height)
Рекомендации по теме
visit shbcf.ru