May 24, 2018 Replies: 5 Hello developers, i wrote a simple class to obtain the full address (if available) from a given Latitude and Longitude location. The address, along other more or less useful info, is obtained from the online nominatim server that makes use of the OpenStreetMap. The pros is that it doesn't require any key or registration , the cons is that it doesn't allow a massive usage, see their policy The class tries to comply to their policy but can be improved, for example caching results and use cached results when possible. Feel free to improve it! the class doesn't require any special Android permission. Find attached a fully working project with the class inside. Enjoy Davide Attachments reversegeo.zip reversegeo.zip 13.2 KB · Views: 938 Click to expand...
Hello developers, i wrote a simple class to obtain the full address (if available) from a given Latitude and Longitude location. The address, along other more or less useful info, is obtained from the online nominatim server that makes use of the OpenStreetMap. The pros is that it doesn't require any key or registration , the cons is that it doesn't allow a massive usage, see their policy The class tries to comply to their policy but can be improved, for example caching results and use cached results when possible. Feel free to improve it! the class doesn't require any special Android permission. Find attached a fully working project with the class inside. Enjoy Davide
marcick Well-Known Member Licensed User Longtime User May 28, 2018 #2 Nice job Davide, thanks. It's a pity most of the addresses doesn't have the street number. But for free ....
Nice job Davide, thanks. It's a pity most of the addresses doesn't have the street number. But for free ....
DavideV Active Member Licensed User Longtime User May 28, 2018 #3 marcick said: Nice job Davide, thanks. It's a pity most of the addresses doesn't have the street number. But for free .... Click to expand... Yes, maybe some areas are not well covered, it works fine here in Italy.
marcick said: Nice job Davide, thanks. It's a pity most of the addresses doesn't have the street number. But for free .... Click to expand... Yes, maybe some areas are not well covered, it works fine here in Italy.
marcick Well-Known Member Licensed User Longtime User May 28, 2018 #4 uhmm ... testing it around Milan, I can't see any street number in display_address key
DavideV Active Member Licensed User Longtime User May 28, 2018 #5 You can try also the online tool here , just insert your location to see if there are different results , but i don't think so
You can try also the online tool here , just insert your location to see if there are different results , but i don't think so
marcick Well-Known Member Licensed User Longtime User May 28, 2018 #6 you think correctly ... Thank you