InseeFrLab / InseeFrLab/formation-python-initiation

Mettre à jour adresse BAN dans CSV/JSON

未關閉
#30 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
3
分支
9
PR 合併指標
30 天內沒有已合併 PR

描述

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'}
```

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

Open source/manipulation/csv-json-files/tutorial.qmd around line 236 and review the BAN request and response examples. Check the current geocoding endpoint and the documented response structure, then render or run the tutorial section to confirm the examples still work and match the current output.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
documentation
Issue 類型
文件
難度
1/5
預估耗時
1 小時以內
活躍度
停滯
描述清晰度
描述清楚
新手友好度
55/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。