Open si404 opened 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.
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.
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.
This might be doable by modifying the region.php region param to accept country codes.
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
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.
This is great!
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.
Since #233 was closed being a duplicate, can we please rename the title of this issue:
multi-region countries -> multi-region countries and continents
@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.
Neither Italy nor South Africa are actually split.
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...
Neither Italy nor South Africa are actually split.
Italy is split when talking about railways 😄
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.
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.