Spaces:
Running
Running
Download api/app/reference_data.py from AustinWealth/Data-wiz-project: direct link, hf CLI and curl.
- Browser
- Download file 2.18 kB
-
https://huggingface.co/spaces/AustinWealth/Data-wiz-project/resolve/main/api/app/reference_data.py
- Command line
-
hf download hf://spaces/AustinWealth/Data-wiz-project/api/app/reference_data.py
-
curl -L -o reference_data.py https://huggingface.co/spaces/AustinWealth/Data-wiz-project/resolve/main/api/app/reference_data.py
2.18 kB
| """Reference geography seeded at init: the 36 states and the FCT. | |
| Codes are ISO 3166-2:NG. Centroids are approximate and used only for | |
| state-level markers and generalised locations. LGAs are seeded from data/ng_lgas.json (sourced; see data/README.md). Places are NOT seeded. | |
| """ | |
| # (code, name, zone, lat, lng) | |
| STATES = [ | |
| ("AB", "Abia", "South East", 5.45, 7.52), | |
| ("AD", "Adamawa", "North East", 9.33, 12.40), | |
| ("AK", "Akwa Ibom", "South South", 5.00, 7.85), | |
| ("AN", "Anambra", "South East", 6.22, 6.94), | |
| ("BA", "Bauchi", "North East", 10.78, 9.99), | |
| ("BY", "Bayelsa", "South South", 4.77, 6.07), | |
| ("BE", "Benue", "North Central", 7.33, 8.75), | |
| ("BO", "Borno", "North East", 11.88, 13.15), | |
| ("CR", "Cross River", "South South", 5.87, 8.60), | |
| ("DE", "Delta", "South South", 5.71, 5.86), | |
| ("EB", "Ebonyi", "South East", 6.26, 8.09), | |
| ("ED", "Edo", "South South", 6.63, 5.93), | |
| ("EK", "Ekiti", "South West", 7.72, 5.31), | |
| ("EN", "Enugu", "South East", 6.53, 7.44), | |
| ("FC", "FCT", "North Central", 9.07, 7.49), | |
| ("GO", "Gombe", "North East", 10.36, 11.19), | |
| ("IM", "Imo", "South East", 5.57, 7.05), | |
| ("JI", "Jigawa", "North West", 12.23, 9.56), | |
| ("KD", "Kaduna", "North West", 10.37, 7.72), | |
| ("KN", "Kano", "North West", 11.75, 8.52), | |
| ("KT", "Katsina", "North West", 12.38, 7.62), | |
| ("KE", "Kebbi", "North West", 11.49, 4.23), | |
| ("KO", "Kogi", "North Central", 7.73, 6.69), | |
| ("KW", "Kwara", "North Central", 8.97, 4.39), | |
| ("LA", "Lagos", "South West", 6.52, 3.38), | |
| ("NA", "Nasarawa", "North Central", 8.50, 8.20), | |
| ("NI", "Niger", "North Central", 9.93, 5.60), | |
| ("OG", "Ogun", "South West", 6.98, 3.48), | |
| ("ON", "Ondo", "South West", 6.91, 5.15), | |
| ("OS", "Osun", "South West", 7.56, 4.52), | |
| ("OY", "Oyo", "South West", 8.16, 3.61), | |
| ("PL", "Plateau", "North Central", 9.22, 9.52), | |
| ("RI", "Rivers", "South South", 4.86, 6.92), | |
| ("SO", "Sokoto", "North West", 13.06, 5.24), | |
| ("TA", "Taraba", "North East", 7.87, 10.78), | |
| ("YO", "Yobe", "North East", 12.29, 11.44), | |
| ("ZA", "Zamfara", "North West", 12.12, 6.22), | |
| ] | |
| STATE_BY_NAME = {s[1].lower(): s for s in STATES} | |