Reverse geocoding android pricing
Asked Answered
S

2

12

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

Shropshire answered 1/3, 2017 at 15:29 Comment(0)
P
17

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.

Pantechnicon answered 1/3, 2017 at 16:3 Comment(3)
Ok, that makes sense. Thanks for clarifying this for me. I appreciate it.Shropshire
@Pantechnicon Hi, is Geocoding service still free? I am confused because the link you gave (developers.google.com/maps/documentation/geocoding/usage-limits) shows that it has a limit. Am I right?Aglet
Geocoder is free in Android but the Geocoding API has usage limits. Here the link for Geocoder: developer.android.com/training/location/display-address.htmlPantechnicon
A
1

Not any more. Google just decided to 10x their price for geocoding https://cloud.google.com/maps-platform/pricing/sheet/

Aggappe answered 4/5, 2018 at 14:4 Comment(1)
geocoder class is different from geocoding api, refer : https://mcmap.net/q/926912/-reverse-geocoding-android-pricingCoinstantaneous

© 2022 - 2024 — McMap. All rights reserved.