Page 2 of 2
Re: Flag Issue
Posted: Tue Jul 13, 2010 4:58 pm
by nick
pmareschal wrote:
Just another suggestion.
I was thinking of something along these lines, but localised.
(BTW: Import no problem with Suunto Cobra, Mosquito, Vytec after installation, OSX 10.6.4, official suunto USB adapter, FTDI USB drivers. Imported dives from 1.5.3, extensive normalisation but I survived it.)
Nice.
Re: Flag Issue
Posted: Mon Jul 19, 2010 4:03 pm
by Antarctic-adventurer
Not sure what the status of this issue is so far, but just for info, "The Philippines" also doesn't bring up the correct flag.
Edit: for the time being I have edited the package contents of MacDive as suggested to fix this. Would be great to see this fixed in a future update so that both "Philippines" and "The Philippines" results in the correct flag being displayed.
Thanks for all your hard work...

Re: Flag Issue
Posted: Sun Jul 25, 2010 5:47 pm
by adrianwi
Scotland has it's own flag so would be nice to have one for England, rather than just UK or GB.
Any idea what St Lucia needs to be
Edit: Doh - Saint works fine

Re: Flag Issue
Posted: Sat Aug 28, 2010 6:32 pm
by Bisente
Hi
I've been playing around with the Google Maps WS API, which I think is what you're using for geocoding, nick.
If I look for a (more or less) specific address:
http://maps.google.com/maps/api/geocode ... ensor=true
One of the things you get back is the 2-letter country code:
"long_name": "España",
"short_name": "ES",
"types": [ "country", "political" ]
You could use that code returned from Google to map the flags, that way it would be independent from language and different ways to write a country's name (UK vs. U.K. vs. United Kingdom).
The problem is that Google doesn't always return the country. For example, now I'm looking for a nearby island where I usually dive:
http://maps.google.com/maps/api/geocode ... ensor=true
If you see the result there's lots of geo-political information (the city, postal code, province and community) but in this particular case the country is missing. But, if now you do a second step looking for the lat-lng on the previous result:
http://maps.google.com/maps/api/geocode ... ensor=true
voila! The country and 2-letter country code:
"long_name": "España",
"short_name": "ES",
"types": [ "country", "political" ]
I've tried with several random lat-lng and it seems that Google always returns the country and country code when you geolocate a lat-lng. So if you don't get the 2-letter code on the address search, it seems you could always do a lat-lng search then and get it.
What do you think?
Regards
Re: Flag Issue
Posted: Sat Aug 28, 2010 7:04 pm
by nick
Well the country in a site doesn't necessarily have coordinates associated, it may just be text. Then you wouldn't have a country code, short of making the user enter it manually.
I would still rather leave it working off the country name for now, but perhaps that's a good way to provide a further refinement, if proper coordinates have been entered and it can be looked up.
Re: Flag Issue
Posted: Tue Oct 19, 2010 2:18 am
by hagbard86
I would need Croatia!?

Re: Flag Issue
Posted: Wed Oct 27, 2010 7:30 pm
by frogger
Can we add the 'Canary Islands' flag to one of the updates please? Pretty please!

Re: Flag Issue
Posted: Wed Oct 27, 2010 8:10 pm
by nick
hagbard86 wrote:I would need Croatia!?

It's there..
Re: Flag Issue
Posted: Wed Oct 27, 2010 8:11 pm
by nick
frogger wrote:Can we add the 'Canary Islands' flag to one of the updates please? Pretty please!

Done. Will be in the next patch, or if you like, email me and I'll send you an updated copy you can use until that's out.
Re: Flag Issue
Posted: Sat Oct 30, 2010 8:12 am
by frogger
Nick you are awesome. I have already updated the flag on my latest version so I will just wait for the next update.
