Skip to content

Tobi bwari#1224

Closed
Towbee05 wants to merge 10 commits intodr5hn:masterfrom
Towbee05:tobi-bwari
Closed

Tobi bwari#1224
Towbee05 wants to merge 10 commits intodr5hn:masterfrom
Towbee05:tobi-bwari

Conversation

@Towbee05
Copy link
Contributor

I added a data entry for missing city "Bwari" in FCT, Nigeria

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. missing-records Missing some records labels Oct 19, 2025
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Oct 19, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 14, 2025
@Aakash315 Aakash315 requested a review from Copilot November 14, 2025 06:27
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new city entry for Bwari in the Federal Capital Territory (FCT), Nigeria. The entry includes basic required fields and properly omits auto-managed fields.

Key changes:

  • Adds Bwari city with correct state and country references (FCT, Nigeria)
  • Includes timezone (Africa/Lagos) and WikiData ID (Q5003670)
  • Missing critical translations field and recommended native field

Comment on lines +17204 to 17214
{
"name": "Bwari",
"state_id": 293,
"state_code": "FC",
"country_id": 161,
"country_code": "NG",
"latitude": "9.282563347732246",
"longitude": "7.379450945728134",
"timezone": "Africa/Lagos",
"wikiDataId": "Q5003670"
}
Copy link

Copilot AI Nov 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing recommended native field. While this field is optional, it's highly recommended for data completeness and is present in most other entries in this file.

For Bwari (a Nigerian city), the native name is likely "Bwari" itself, but this should be verified and explicitly set.

Copilot generated this review using guidance from repository custom instructions.
Comment on lines +17210 to +17211
"latitude": "9.282563347732246",
"longitude": "7.379450945728134",
Copy link

Copilot AI Nov 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Coordinate precision is inconsistent with existing entries. Most cities in this file use 8 decimal places (e.g., "5.10658000"), but this entry uses 15 decimal places ("9.282563347732246").

For consistency and practical purposes, coordinates should be formatted to 8 decimal places:

  • "latitude": "9.28256335"
  • "longitude": "7.37945095"

Note: 8 decimal places provides precision to ~1mm, which is more than sufficient for city-level location data.

Suggested change
"latitude": "9.282563347732246",
"longitude": "7.379450945728134",
"latitude": "9.28256335",
"longitude": "7.37945095",

Copilot uses AI. Check for mistakes.
Comment on lines +17204 to 17214
{
"name": "Bwari",
"state_id": 293,
"state_code": "FC",
"country_id": 161,
"country_code": "NG",
"latitude": "9.282563347732246",
"longitude": "7.379450945728134",
"timezone": "Africa/Lagos",
"wikiDataId": "Q5003670"
}
Copy link

Copilot AI Nov 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing required translations field. According to the project guidelines, translations are MANDATORY for data quality.

Use the automatic enrichment tool to add translations:

python3 bin/scripts/validation/translation_enricher.py \
    --file contributions/cities/NG.json \
    --type city \
    --entity "Bwari"

This tool fetches authentic translations from Wikipedia in 18+ languages (ar, de, es, fr, hi, it, ja, ko, pt, ru, zh, etc.) for free.

Copilot generated this review using guidance from repository custom instructions.
@dr5hn
Copy link
Owner

dr5hn commented Nov 22, 2025

Fixed in #1293

@dr5hn dr5hn closed this Nov 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer missing-records Missing some records size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants