If someone could help me. Is using geocoder free for android, currently i'm only using google maps. I see that it says that its only 2500 requests per day. Or is this only for web and something entirely different from mobile?
I am using the following code to get a zip code with a latitude and longitude.
final Geocoder geocoder = new Geocoder(getActivity());
try {
List<Address> addresses = geocoder.getFromLocation(mLocationClient.getLatitudeCoordinate(), mLocationClient.getLongitudeCordinate(),5);
for (Address address: addresses){
if(address.getLocality()!=null && address.getPostalCode()!=null){
Log.v("Zip code", " " + address.getPostalCode());
}
}
} catch (IOException e) {
e.printStackTrace();
}
https://developers.google.com/maps/pricing-and-plans/#details
Just trying to make sure. I'm super confused on this and some clarification could help :) Thanks
The Geocoding API uses a pay-as-you-go pricing model.
The Geocoder use is totally free.
It is expensive. It costs $5 per 1000 hits up to 100,000 hits. And onwards up to 500,000 hits, it will cost $4 per 1000 hits.
While most geocoding services come with a hefty price tag or credit fee, QGIS offers several geocoding plugins for free. And the best part about QGIS is that it's completely open-source licensed under the GNU General Public License. In QGIS 3, geocoding is all in open source using the OSM Place Search plugin.
The Geocoder use is totally free.
The link you wrote is related to Google Maps and Google Places API, not the Geocoding API. This is the correct link:
https://developers.google.com/maps/documentation/geocoding/usage-limits
Anyway you are not using the Geocoding API with this code, you just using the Geocoder of Android.
This is the documentation to use the Geocoding API if you want: https://developers.google.com/maps/documentation/geocoding/intro
The Geocoding API works better than Geocoder normally but has usage limits and the implementation is bigger.
Not any more. Google just decided to 10x their price for geocoding https://cloud.google.com/maps-platform/pricing/sheet/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With