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 - 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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Getting a reference to the map object4m 42s
-
Setting a map's initial state in the layout5m 34s
-
Setting a map's initial state programmatically5m 3s
-
Geocoding an address to get its coordinates7m 37s
-
Displaying different types of maps4m 15s
-
Challenge: Add a map to an existing app4m 3s
-
Solution: Add a map to an existing app3m 33s
-
-
-
-
-
-