InseeFrLab / InseeFrLab/formation-python-initiation

Mettre à jour adresse BAN dans CSV/JSON

Đang mở
#30 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
3
Fork
9
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

L'adresse de la BAN dans https://github.com/InseeFrLab/formation-python-initiation/blob/05bebb86e404c2e757b0cdee054aa292598b338a/source/manipulation/csv-json-files/tutorial.qmd#L236 a changé

```{python}
response = requests.get("https://data.geopf.fr/geocodage/search?q=comedie&type=street")
```
Le reste est bon, le format des réponses est bon mais change légèrement ensuite :

```{python}
>>> r_dict.keys()
dict_keys(['type', 'features', 'query'])
```
```{python}
>>> r_json['features'][0]
{'geometry': {'coordinates': [3.063768, 50.635207], 'type': 'Point'},
'properties': {'_type': 'address',
'banId': '01a7bf20-86a1-479c-a4c8-36fbba754195',
'city': 'Lille',
'citycode': '59350',
'context': '59, Nord, Hauts-de-France',
'id': '59350_9149',
'importance': 0.72099,
'label': 'Rue de la Vieille Comédie 59800 Lille',
'name': 'Rue de la Vieille Comédie',
'oldcity': 'Lille',
'oldcitycode': '59350',
'postcode': '59800',
'score': 0.7019081818181817,
'street': 'Rue de la Vieille Comédie',
'type': 'street',
'x': 704519.03,
'y': 7059806.3},
'type': 'Feature'}
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.