MapTrip Interface Android Reference Manual 9.10.1
Loading...
Searching...
No Matches
de.infoware.android.mti.GeocoderListener Interface Reference

Public Member Functions

void getGeocodedAddressResult (int requestId, ApiError returnCode, double latitude, double longitude, String country, String city, String district, String zipCode, String street, String houseNr)
 
void geocodeAddressResult (int requestId, int numberOfResults, ApiError returnCode)
 

Member Function Documentation

◆ geocodeAddressResult()

void de.infoware.android.mti.GeocoderListener.geocodeAddressResult ( int  requestId,
int  numberOfResults,
ApiError  returnCode 
)

Result from the Geocoder.geocodeAddress() function.

Parameters
requestId- unique identifier returned by the initiating request
numberOfResults- number of matching addresses from the request ( 0 if none found )
returnCode- ApiError.OK on success

◆ getGeocodedAddressResult()

void de.infoware.android.mti.GeocoderListener.getGeocodedAddressResult ( int  requestId,
ApiError  returnCode,
double  latitude,
double  longitude,
String  country,
String  city,
String  district,
String  zipCode,
String  street,
String  houseNr 
)

Result from the Geocoder.getGeocodedAddress() function. The values are only valid if the returnCode is ApiError.OK.

Parameters
requestId- unique identifier returned by the initiating request
returnCode-
  • MTI_ERROR_OK if successful ( other parameter are valid )
  • MTI_ERROR_INVALID_INDEX if index in request was > that the number of elements + 1
latitude- WGS84
longitude- WGS84
country- country abbreviation of the request that resulted in this coordinate 3-letter ISO
city- city of the request that resulted in this coordinate
district- district of the request that resulted in this coordinate
zipCode- zip code of the request that resulted in this coordinate
street- street of the request that resulted in this coordinate
houseNr- housenr of the request that resulted in this coordinate
returnCode- ApiError.OK on success