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

Support for administrative regions/boundaries in Tanzania #2

Open
bentesha opened this issue Jun 16, 2021 · 4 comments
Open

Support for administrative regions/boundaries in Tanzania #2

bentesha opened this issue Jun 16, 2021 · 4 comments

Comments

@bentesha
Copy link

Hello,

This is going to be a very useful resource for developers wanting to test their applications with real data.

I believe adding support for administrative regions would be a big plus. Let me know if you already have this in your plans, as this is an area I should be able to help with.

You may want to look into my project https://github.com/bentesha/rgeocode - a self-hosted reverse geocode for Tanzania and Kenya. There is plenty of data that can be used for this project.

@shemmjunior
Copy link
Owner

Great, sure we will need to have regions attribute.

Currently it is on the future plan but if you can spin it fast we can add support for the regions in less time.

We can do it as a new attribute: E.g. Location
bandia.location.region() -- Provides region
bandia.location.district() --Provides district
Same goes for wards

Or you can think of any best strategy that suites the attribute.

From here your data would be helpful.

@bentesha
Copy link
Author

Yes. It should be accommodated as a new attribute.

bandia.location.zone() // Northern Zone, Southen Higherlands etc
bandia.location.region()
bandia.location.district()
bandia.location.district('Mwanza') // A random district in Mwanza
bandia.location.ward('Kinondoni') // Only wards within Kinondoni
bandia.location.ward() // A random ward

The ability to limit data within a particular scope would help generate data that is more realistic.

const region = bandia.location.region() // Get a random region
const district = bandida.location.district(region) // Generated district must fall under region
const ward = bandia.location.ward(district) // And so does the ward

@shemmjunior
Copy link
Owner

Cool then, i will prepare the attribute function and let you know when to commence the data intergration of the regions

@bentesha
Copy link
Author

@shemmjunior Sure thing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants