Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing cities in Hampshire #763

Open
adititipnis opened this issue Feb 27, 2024 · 1 comment
Open

Missing cities in Hampshire #763

adititipnis opened this issue Feb 27, 2024 · 1 comment
Labels
bug Something isn't working missing-records Missing some records UK

Comments

@adititipnis
Copy link

There are no cities available for { "name": "Hampshire", "isoCode": "HAM", "countryCode": "GB", "latitude": "51.05769480", "longitude": "-1.30806290" }

Copy link

dosubot bot commented Feb 27, 2024

🤖

Based on the context provided, it seems that the location "Hampshire" with isoCode "HAM" and countryCode "GB" is not present in the XML data. To resolve this issue, you need to ensure that the XML file contains the data for this location. If the data is not present, you need to add it to the XML file. The XML data should be in the following format for each city in Hampshire:

<state_city>
    <id>state_id</id>
    <name>Hampshire</name>
    <state_code>HAM</state_code>
    <latitude>latitude_value</latitude>
    <longitude>longitude_value</longitude>
    <country_id>GB</country_id>
    <cities>
      <id>city_id</id>
      <name>city_name</name>
      <latitude>city_latitude</latitude>
      <longitude>city_longitude</longitude>
    </cities>
    ...
</state_city>

Replace state_id, latitude_value, longitude_value, city_id, city_name, city_latitude, and city_longitude with the actual values. You can refer to the xml/states+cities.xml for more details.

Regarding the retrieval of city data, the code uses a GET request to the wft-geo-db API to fetch the city data. The URL for the GET request is constructed using the country and state codes provided in the variables $countryWiki and $stateFips. The offset and limit parameters are used to paginate through the results. You can refer to the scripts/vendor/get_cities_by_state_country.php for more details.

As for the consistency of the issue across all data formats, I wasn't able to find an answer within the repository. It would be helpful if you could provide more information about this. For example, have you checked if the issue is present in other data formats like JSON, SQL, PSQL, YAML, and CSV?

Sources

About Dosu

This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

@dosubot dosubot bot added bug Something isn't working missing-records Missing some records UK labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working missing-records Missing some records UK
Projects
None yet
Development

No branches or pull requests

1 participant