Note that there are some explanatory texts on larger screens.

plurals
  1. POOffline reverse geocoding on iOS
    primarykey
    data
    text
    <p>There are lots of existing questions relating to this issue, but I have looked at as many of them as I could find and did not get an answer.</p> <p>I'm trying to perform an offline reverse geocoding lookup on iOS based on a latitude and longitude. I'd like to be able to provide a latitude and longitude, and be provided with the country in which that point lies. I can do this with Geonames (such as: <a href="http://api.geonames.org/countryCode?lat=45.03&amp;lng=8.2&amp;username=demo" rel="nofollow">http://api.geonames.org/countryCode?lat=45.03&amp;lng=8.2&amp;username=demo</a>), but I need a similar ability offline, without Internet functionality on the device.</p> <p><code>CLLocation</code> does not provide offline services that work reliably enough for what I'm doing, it relies on caches made while you were previously online, etc. Messy.</p> <p>I've tried this: <a href="https://github.com/drodriguez/reversegeocoding" rel="nofollow">https://github.com/drodriguez/reversegeocoding</a> but haven't had any luck, it requires some slightly complex / confusing Terminal installations using something called Thor which I've never heard of, and was throwing up a variety of errors, so I bailed on it.</p> <p>I've found a few downloadable maps, but these seem to be even more complicated, and worryingly, hundreds of megabytes or even gigabytes in size – much beyond the scope of an iOS app. I only need countries, nothing smaller than that (cities, streets, locations, etc.) so I think I should be able to get a much smaller file.</p> <p>So my key question is: is there some pre-existing database or tool, preferably with iOS support, that I can feed a latitude/longitude, and get a country? And, if not, what steps should I take to get such functionality working on my own?</p> <p>Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload