This my code:
Geocoder geocoder = new Geocoder(this, Locale.getDefault());
List addresses = geocoder.getFromLocationName(text, 10);
te
Both of the proposed ways cost money and I think peoples should mention it. We have the -$200 from the Google, but its all depends from how much users you have and how frequent you need to use the geocode. 60k requests per month to the geocoder - easy $300 only for to use the geocode https API :
Nov 1 – 30, 2018 Geocoding API Geocoding: 6073 Counts - $30.38
Dont filter what you need in the responses, like we have in the requests from other posts? Expect way more:
Nov 1 – 30, 2018 Places API Places Details: 2389 Counts $40.61
Nov 1 – 30, 2018 Places API Contact Data: 2385 Counts $7.17
Nov 1 – 30, 2018 Places API Atmosphere Data: 2385 Counts $11.95