Need to get random lat/long location given country
Posted on 2011-03-04
I have a need to be able to get a random lat/long location within a specified country. I've searched and seen solutions that call a service getting a random location until it returns one in the country desired, and saw the question on Experts Exchange about getting a list of 1000 for a specified country, but none of those solutions will work for me.
I just need to call an API or service passing in a country code and getting a random lat/long that is within that country. Repeated calls should give a reasonable dispersion across the country.