I'm trying to use data from an API in json format in my QGIS project. To do so, I call the link in this way.
I would like to get the attributes and also the latitude and longitude coordinates from the JSON to create the geometry in QGIS. Is this possible according to you? And how could i include the query in my loop to get the coordinate and create points of data ?
Here is what the current JSON looks like :
{
"nhits": 49,
"parameters": {
"dataset": "evenements-publics-cibul",
"timezone": "UTC",
"rows": 1354,
"start": 0,
"format": "json",
"facet": [
"tags",
"placename",
"department",
"region",
"city",
"date_start",
"date_end",
"pricing_info",
"updated_at",
"city_district"
]
},
"records": [
{
"datasetid": "evenements-publics-cibul",
"recordid": "41ca897b543df849ceb4a1c43fd4d11daeb251eb",
"fields": {
"uid": "99319396",
"image": "http://cibul.s3.amazonaws.com/event_port-des-champs-elysees-tuileries_722620.jpg",
"updated_at": "2016-06-19T18:53:27+00:00",
"free_text": "## 18h30\u00a0: \u00a0PARISANDES - Musique des Andes \u00a0\n\n## 20h\u00a0: LE PLOUM \u2013 Jazz \u00a0\n\n## 21h30\u00a0: JOYLINER - Rock\n\n## 23h\u00a0:\u00a0ROUND WINDOW & 26$ IN MY HAND \u2013 Jazz & Rock \u00a0\n\n## Association ADNI\n\n## Port des Champs Elys\u00e9es - 75008 Paris\n\n## P\u00e9niche ARBOIS : rive droite - passerelle Solf\u00e9rino\u00a0\n\n## M\u00e9tro : Concorde ou Solf\u00e9rino",
"latlon": [
48.861288,
2.329838
],
"city": "Paris",
"title": "Port Des Champs Elys\u00e9es - Tuileries",
"pricing_info": "Gratuit - Ext\u00e9rieur",
"date_start": "2016-06-21",
"department": "Paris",
"image_thumb": "http://cibul.s3.amazonaws.com/evtbevent_port-des-champs-elysees-tuileries_722620.jpg",
"date_end": "2016-06-21",
"description": "Concerts Gratuits - P\u00e9niche ARBOIS - Jazz, Rock, Musique des Andes",
"tags": "rock,jazz,gratuit,concert,andes,musique,p\u00e9niche,quais,seine",
"space_time_info": "Port des Champs Elys\u00e9es - Quai des Tuileries, le mardi 21 juin \u00e0 18:30",
"timetable": "2016-06-21T18:30:00 2016-06-21T00:00:00",
"link": "http://openagenda.com/event/port-des-champs-elysees-tuileries",
"address": "PORT DES TUILERIES",
"lang": "fr",
"placename": "Port des Champs Elys\u00e9es - Quai des Tuileries",
"region": "\u00cele-de-France",
"program_uid": "7633600 64984403 63658282 59310395 31778250"
},
"geometry": {
"type": "Point",
"coordinates": [
2.329838,
48.861288
]
},
"record_timestamp": "2017-03-29T15:13:50.163000+00:00"
},
Thank you,
Wendy