@Test public void FromLocationName_LatLong_Maybe_Locale() throws Exception { doReturn(addressList).when(geocoder).getFromLocationName(locationName, 1, lowerLeftLatitude, lowerLeftLongitude, upperRightLatitude, upperRightLongitude); geocoding.fromLocationName(locale, locationName, lowerLeftLatitude, lowerLeftLongitude, upperRightLatitude, upperRightLongitude).test() .assertValue(address) .assertComplete(); verifyGeocoderWithLocale(); }
public Maybe<Address> fromLocationName(@NonNull String locationName, double lowerLeftLatitude, double lowerLeftLongitude, double upperRightLatitude, double upperRightLongitude) { return fromLocationName(null, locationName, 1, lowerLeftLatitude, lowerLeftLongitude, upperRightLatitude, upperRightLongitude).flatMapMaybe(ADDRESS_MAYBE_FUNCTION); }
Geocoding { public Maybe<Address> fromLocationName(@NonNull String locationName, double lowerLeftLatitude, double lowerLeftLongitude, double upperRightLatitude, double upperRightLongitude) { return fromLocationName(null, locationName, 1, lowerLeftLatitude, lowerLeftLongitude, upperRightLatitude, upperRightLongitude).flatMapMaybe(ADDRESS_MAYBE_FUNCTION); } }
Geocoding { public Maybe<Address> fromLocationName(@NonNull String locationName, double lowerLeftLatitude, double lowerLeftLongitude, double upperRightLatitude, double upperRightLongitude) { return fromLocationName(null, locationName, 1, lowerLeftLatitude, lowerLeftLongitude, upperRightLatitude, upperRightLongitude).flatMapMaybe(ADDRESS_MAYBE_FUNCTION); } Geocoding(Context context); }
Geocoding { public Maybe<Address> fromLocationName(@NonNull String locationName, double lowerLeftLatitude, double lowerLeftLongitude, double upperRightLatitude, double upperRightLongitude) { return fromLocationName(null, locationName, 1, lowerLeftLatitude, lowerLeftLongitude, upperRightLatitude, upperRightLongitude).flatMapMaybe(ADDRESS_MAYBE_FUNCTION); } Geocoding(Context context); Maybe<Address> fromLocation(@NonNull Location location); Maybe<Address> fromLocation(Locale locale, @NonNull Location location); Single<List<Address>> fromLocation(@NonNull Location location, int maxResults); Single<List<Address>> fromLocation(Locale locale, @NonNull Location location, int maxResults); Maybe<Address> fromLocation(double latitude, double longitude); Maybe<Address> fromLocation(Locale locale, double latitude, double longitude); Single<List<Address>> fromLocation(double latitude, double longitude, int maxResults); Single<List<Address>> fromLocation(Locale locale, double latitude, double longitude, int maxResults); Maybe<Address> fromLocationName(@NonNull String locationName, double lowerLeftLatitude, double lowerLeftLongitude, double upperRightLatitude, double upperRightLongitude); Maybe<Address> fromLocationName(Locale locale, @NonNull String locationName, double lowerLeftLatitude, double lowerLeftLongitude, double upperRightLatitude, double upperRightLongitude); Single<List<Address>> fromLocationName(@NonNull String locationName, int maxResults, double lowerLeftLatitude, double lowerLeftLongitude, double upperRightLatitude, double upperRightLongitude); Single<List<Address>> fromLocationName(Locale locale, @NonNull String locationName, int maxResults, double lowerLeftLatitude, double lowerLeftLongitude, double upperRightLatitude, double upperRightLongitude); Maybe<Address> fromLocationName(@NonNull String locationName); Maybe<Address> fromLocationName(Locale locale, @NonNull String locationName); Single<List<Address>> fromLocationName(@NonNull String locationName, int maxResults); Single<List<Address>> fromLocationName(Locale locale, @NonNull String locationName, int maxResults); }
Geocoding { public Maybe<Address> fromLocationName(@NonNull String locationName, double lowerLeftLatitude, double lowerLeftLongitude, double upperRightLatitude, double upperRightLongitude) { return fromLocationName(null, locationName, 1, lowerLeftLatitude, lowerLeftLongitude, upperRightLatitude, upperRightLongitude).flatMapMaybe(ADDRESS_MAYBE_FUNCTION); } Geocoding(Context context); Maybe<Address> fromLocation(@NonNull Location location); Maybe<Address> fromLocation(Locale locale, @NonNull Location location); Single<List<Address>> fromLocation(@NonNull Location location, int maxResults); Single<List<Address>> fromLocation(Locale locale, @NonNull Location location, int maxResults); Maybe<Address> fromLocation(double latitude, double longitude); Maybe<Address> fromLocation(Locale locale, double latitude, double longitude); Single<List<Address>> fromLocation(double latitude, double longitude, int maxResults); Single<List<Address>> fromLocation(Locale locale, double latitude, double longitude, int maxResults); Maybe<Address> fromLocationName(@NonNull String locationName, double lowerLeftLatitude, double lowerLeftLongitude, double upperRightLatitude, double upperRightLongitude); Maybe<Address> fromLocationName(Locale locale, @NonNull String locationName, double lowerLeftLatitude, double lowerLeftLongitude, double upperRightLatitude, double upperRightLongitude); Single<List<Address>> fromLocationName(@NonNull String locationName, int maxResults, double lowerLeftLatitude, double lowerLeftLongitude, double upperRightLatitude, double upperRightLongitude); Single<List<Address>> fromLocationName(Locale locale, @NonNull String locationName, int maxResults, double lowerLeftLatitude, double lowerLeftLongitude, double upperRightLatitude, double upperRightLongitude); Maybe<Address> fromLocationName(@NonNull String locationName); Maybe<Address> fromLocationName(Locale locale, @NonNull String locationName); Single<List<Address>> fromLocationName(@NonNull String locationName, int maxResults); Single<List<Address>> fromLocationName(Locale locale, @NonNull String locationName, int maxResults);  }