类 GeocodingApi
java.lang.Object
ai.nextbillion.maps.GeocodingApi
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.
- 另请参阅:
- Geocoding documentation
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classGeocodingApi.Response -
方法概要
修饰符和类型 方法 说明 static GeocodingApiRequestgeocode(GeoApiContext context, java.lang.String address)Requests the latitude and longitude of anaddress.static GeocodingApiRequestnewRequest(GeoApiContext context)Creates a new Geocoding API request.static GeocodingApiRequestreverseGeocode(GeoApiContext context, LatLng location)Requests the street address of alocation.
-
方法详细资料
-
newRequest
Creates a new Geocoding API request.- 参数:
context- TheGeoApiContextto make requests through.- 返回:
- Returns the request, ready to run.
-
geocode
Requests the latitude and longitude of anaddress.- 参数:
context- TheGeoApiContextto make requests through.address- The address to geocode.- 返回:
- Returns the request, ready to run.
-
reverseGeocode
Requests the street address of alocation.- 参数:
context- TheGeoApiContextto make requests through.location- The location to reverse geocode.- 返回:
- Returns the request, ready to run.
-