Maybe the technique, i had in mind for such a tool, could help.
google.com is always redirected to the nearest google server. That server can be queried for location.
It's not superprecise, but should be good enough for our purpose.
Hi MedEvil
This is how it will be ? Could you give some more technical information ? Best regards