public class GeocodingApi
extends java.lang.Object
Geocoding is the process of converting addresses (like "1600 Amphitheatre Parkway, Mountain View, CA") into geographic coordinates (like latitude 37.423021 and longitude -122.083739), which you can use to place markers or position the map.
Reverse geocoding is the process of converting geographic coordinates into a human-readable address.
See documentation.
Modifier and Type | Class and Description |
---|---|
static class |
GeocodingApi.ComponentFilter
This class represents a component filter for a geocode request.
|
Modifier and Type | Method and Description |
---|---|
static GeocodingApiRequest |
geocode(GeoApiContext context,
java.lang.String address)
Request the latitude and longitude of an
address . |
static GeocodingApiRequest |
newRequest(GeoApiContext context)
create a new Geocoding API request.
|
static GeocodingApiRequest |
reverseGeocode(GeoApiContext context,
LatLng location)
Request the street address of a
location . |
public static GeocodingApiRequest newRequest(GeoApiContext context)
public static GeocodingApiRequest geocode(GeoApiContext context, java.lang.String address)
address
.public static GeocodingApiRequest reverseGeocode(GeoApiContext context, LatLng location)
location
.