[GIS] How to cache reverse-geocode results

androidcachegeocodingreverse-geocoding

I'm implementing an Android application that needs to do some reverse-geocoding to resolve a geocoordinate to a city. What is the best way to cache this information on the smartphone so that I don't have to always call an online server to perform this reverse-geocoding?

Best Answer

I was looking for an answer to that as well. So far what I think the best course is, to use android storage(shared preferences or disk cache) and store locations by north east and south west bounds coordinates(returned by the geocoder) and before using the geocoder by that device again, we check if the current coordinates are within the parameters of the stored bounds, and we return the results natively if possible. Given the limitations on the use of the geocoder, try to make the most of the information you get...