From the course: Android App Development: Google Maps

Unlock this course with a free trial

Join today to access over 22,500 courses taught by industry experts.

Geocoding an address to get its coordinates

Geocoding an address to get its coordinates - Android Tutorial

From the course: Android App Development: Google Maps

Geocoding an address to get its coordinates

- The Geocoding API is an online service that let's you easily find information about locations. You can find information about this API on this webpage. Using this service, you can pass in a latitude and a longitude and get back a matching location, or you can pass in a city name, a zip code, or a landmark, and get back the latitude and longitude. There are some usage limits and you should be familiar with them. If you're using the free API, you're limited to 2500 requests per day, per API key, and up to 5 requests a second. With a paid license for Google Maps API for Work, you can increase that to 100,000 requests a day, and up to 10 requests a second. This documentation is a part of the web services docs for the Geocoding API and you'll find information here about how to work with it, getting back json and xml formats. But that's not how you use it in Android. In Android, we'll use a class named "Gecoder." This class wraps up all the requests and response functionality and delivers…

Contents