TravelMapping / Web

Web-facing tool/page development
8 stars 26 forks source link

multi-region countries and continents stats #54

Open si404 opened 8 years ago

si404 commented 8 years ago

Unable to view statistics for a whole country that is made up of several regions by typing the code into a box.

Would provide useful functionality that CHM had.

Issue of some countries (FRA, NLD, FIN, UKR) having main region with same code.

jteresco commented 8 years ago

I've considered a bit how this might be done, but haven't come up with a good way to handle this yet.

michihdeu commented 8 years ago

What's the problem? "Regions.csv" has a "country" column and all countries are in "countries.csv". Stats of all corresponding regions must be calculated and added.

jteresco commented 8 years ago

It's not a question of whether it can be done, it's a matter of finding the time to design, implement, and debug it. It might be pretty easy with some SQL magic, but I don't know yet.

wjorda commented 8 years ago

This might be doable by modifying the region.php region param to accept country codes.

michihdeu commented 7 years ago

I first step is done for HDX. However, the country filter does not yet output "normal" countries.

http://tm.teresco.org/forum/index.php?topic=2077.msg6593#msg6593

jteresco commented 6 years ago

This is now done for https://github.com/TravelMapping/Web/blob/master/user/mapview.php, but I haven't touched https://github.com/TravelMapping/Web/blob/master/user/region.php, which I think is the main request here.

si404 commented 6 years ago

This is great!

michihdeu commented 4 years ago

Also continents as mentioned here please: http://tm.teresco.org/forum/index.php?topic=2204

It doesn't have to be limited to multi-region countries either - continents are something we can do in the same way.

michihdeu commented 4 years ago

Since #233 was closed being a duplicate, can we please rename the title of this issue:

multi-region countries -> multi-region countries and continents

michihdeu commented 2 months ago

@jteresco I know you are busy but since we 13 split countries now*, the demand is higher than ever. I'd love to see it live on the site 😄

*Australia, Brazil, Canada, China, Germany, Spain, France, India, Italy, Mexico, UK, USA and South Africa.

si404 commented 2 months ago

Neither Italy nor South Africa are actually split.

michihdeu commented 2 months ago

Neither Italy nor South Africa are actually split.

True but we might see it live in the coming months. I hope for end of year (if @yakra will not duck) However, you've also mentioned the Netherlands and Finland in you OP... and there's the Crimea thing...

michihdeu commented 2 months ago

Neither Italy nor South Africa are actually split.

Italy is split when talking about railways 😄

si404 commented 2 months ago

True but we might see it live in the coming months. I hope for end of year (if @yakra will not duck)

Hopefully sooner than that - end of year sounds like there's loads of work, or that there's a little but procrastination delays it beyond then.

However, you've also mentioned the Netherlands and Finland in you OP... and there's the Crimea thing...

Oh yeah, there's Aruba+Curacao in NLD (country) and Aland in Finland (country). Also Faroe Islands in Denmark (country). Plus Crimea in Ukraine (country) - possibly that issue is soon dealt with...

Italy is split when talking about railways 😄

As is Indonesia, which will go on the highway site as soon as yakra's tool works and splitting is easy to implement.