5757
5858import reactor .core .publisher .Mono ;
5959
60- /** Initializes a new instance of the asynchronous SearchClient type.
60+ /** Initializes a new instance of the asynchronous SearchClient type.
6161* Creating an async client using a {@link com.azure.core.credential.AzureKeyCredential}:
6262* <!-- src_embed com.azure.maps.search.async.builder.key.instantiation -->
6363* <pre>
9090* MapsSearchAsyncClient client = builder.buildAsyncClient();
9191* </pre>
9292* <!-- end com.azure.maps.search.async.builder.ad.instantiation -->
93- */
93+ */
9494
9595@ ServiceClient (builder = MapsSearchClientBuilder .class , isAsync = true )
9696public final class MapsSearchAsyncClient {
@@ -573,7 +573,7 @@ Mono<Response<SearchAddressResult>> searchPointOfInterestWithResponse(SearchPoin
573573 * Search Nearby Points of Interest
574574 * <!-- src_embed com.azure.maps.search.async.search_nearby -->
575575 * <pre>
576- * System.out.println("Search Nearby:");
576+ * System.out.println("Search Nearby Points of Interest :");
577577 *
578578 * // options
579579 * asyncClient.searchNearbyPointsOfInterest(
@@ -608,7 +608,7 @@ public Mono<SearchAddressResult> searchNearbyPointsOfInterest(
608608 * Search Nearby Points of Interest
609609 * <!-- src_embed com.azure.maps.search.async.search_nearby -->
610610 * <pre>
611- * System.out.println("Search Nearby:");
611+ * System.out.println("Search Nearby Points of Interest :");
612612 *
613613 * // options
614614 * asyncClient.searchNearbyPointsOfInterest(
@@ -643,7 +643,7 @@ public Mono<SearchAddressResult> searchNearbyPointsOfInterest(
643643 * Search Nearby Points of Interest
644644 * <!-- src_embed com.azure.maps.search.async.search_nearby -->
645645 * <pre>
646- * System.out.println("Search Nearby:");
646+ * System.out.println("Search Nearby Points of Interest :");
647647 *
648648 * // options
649649 * asyncClient.searchNearbyPointsOfInterest(
@@ -675,7 +675,7 @@ public Mono<Response<SearchAddressResult>> searchNearbyPointsOfInterestWithRespo
675675 * Search Nearby Points of Interest
676676 * <!-- src_embed com.azure.maps.search.async.search_nearby -->
677677 * <pre>
678- * System.out.println("Search Nearby:");
678+ * System.out.println("Search Nearby Points of Interest :");
679679 *
680680 * // options
681681 * asyncClient.searchNearbyPointsOfInterest(
@@ -1891,26 +1891,27 @@ Mono<Response<SearchAddressResult>> searchInsideGeometryWithResponse(SearchInsid
18911891 *
18921892 * // create route points
18931893 * List<GeoPosition> getPolygonPoints = new ArrayList<>();
1894- * points .add(new GeoPosition(-122.143035, 47.653536));
1895- * points .add(new GeoPosition(-122.187164, 47.617556));
1896- * points .add(new GeoPosition(-122.114981, 47.570599));
1897- * points .add(new GeoPosition(-122.132756, 47.654009));
1894+ * getPolygonPoints .add(new GeoPosition(-122.143035, 47.653536));
1895+ * getPolygonPoints .add(new GeoPosition(-122.187164, 47.617556));
1896+ * getPolygonPoints .add(new GeoPosition(-122.114981, 47.570599));
1897+ * getPolygonPoints .add(new GeoPosition(-122.132756, 47.654009));
18981898 * GeoLineString getPolygonRoute = new GeoLineString(getPolygonPoints);
18991899 *
19001900 * // simple
1901- * asyncClient.searchAlongRoute(new SearchAlongRouteOptions("burger", 1000, getPolygonRoute));
1901+ * SearchAddressResult result = asyncClient.searchAlongRoute(
1902+ * new SearchAlongRouteOptions("burger", 1000, getPolygonRoute)).block();
19021903 *
19031904 * // options
19041905 * asyncClient.searchAlongRoute(
19051906 * new SearchAlongRouteOptions("burger", 1000, getPolygonRoute)
19061907 * .setCategoryFilter(Arrays.asList(7315))
1907- * .setTop(5));
1908+ * .setTop(5)).block() ;
19081909 *
19091910 * // complete
19101911 * asyncClient.searchAlongRouteWithResponse(
19111912 * new SearchAlongRouteOptions("burger", 1000, getPolygonRoute)
1912- * .setCategoryFilter(Arrays.asList(7315))
1913- * .setTop(5)).block().getStatusCode();
1913+ * .setCategoryFilter(Arrays.asList(7315)).setOperatingHours(OperatingHoursRange.NEXT_SEVEN_DAYS )
1914+ * .setTop(5)).block().getStatusCode();
19141915 * </pre>
19151916 * <!-- end com.azure.maps.search.async.search_along_route -->
19161917 *
@@ -1936,26 +1937,27 @@ public Mono<SearchAddressResult> searchAlongRoute(SearchAlongRouteOptions option
19361937 *
19371938 * // create route points
19381939 * List<GeoPosition> getPolygonPoints = new ArrayList<>();
1939- * points .add(new GeoPosition(-122.143035, 47.653536));
1940- * points .add(new GeoPosition(-122.187164, 47.617556));
1941- * points .add(new GeoPosition(-122.114981, 47.570599));
1942- * points .add(new GeoPosition(-122.132756, 47.654009));
1940+ * getPolygonPoints .add(new GeoPosition(-122.143035, 47.653536));
1941+ * getPolygonPoints .add(new GeoPosition(-122.187164, 47.617556));
1942+ * getPolygonPoints .add(new GeoPosition(-122.114981, 47.570599));
1943+ * getPolygonPoints .add(new GeoPosition(-122.132756, 47.654009));
19431944 * GeoLineString getPolygonRoute = new GeoLineString(getPolygonPoints);
19441945 *
19451946 * // simple
1946- * asyncClient.searchAlongRoute(new SearchAlongRouteOptions("burger", 1000, getPolygonRoute));
1947+ * SearchAddressResult result = asyncClient.searchAlongRoute(
1948+ * new SearchAlongRouteOptions("burger", 1000, getPolygonRoute)).block();
19471949 *
19481950 * // options
19491951 * asyncClient.searchAlongRoute(
19501952 * new SearchAlongRouteOptions("burger", 1000, getPolygonRoute)
19511953 * .setCategoryFilter(Arrays.asList(7315))
1952- * .setTop(5));
1954+ * .setTop(5)).block() ;
19531955 *
19541956 * // complete
19551957 * asyncClient.searchAlongRouteWithResponse(
19561958 * new SearchAlongRouteOptions("burger", 1000, getPolygonRoute)
1957- * .setCategoryFilter(Arrays.asList(7315))
1958- * .setTop(5)).block().getStatusCode();
1959+ * .setCategoryFilter(Arrays.asList(7315)).setOperatingHours(OperatingHoursRange.NEXT_SEVEN_DAYS )
1960+ * .setTop(5)).block().getStatusCode();
19591961 * </pre>
19601962 * <!-- end com.azure.maps.search.async.search_along_route -->
19611963 *
@@ -1982,26 +1984,27 @@ public Mono<SearchAddressResult> searchAlongRoute(String query, int maxDetourTim
19821984 *
19831985 * // create route points
19841986 * List<GeoPosition> getPolygonPoints = new ArrayList<>();
1985- * points .add(new GeoPosition(-122.143035, 47.653536));
1986- * points .add(new GeoPosition(-122.187164, 47.617556));
1987- * points .add(new GeoPosition(-122.114981, 47.570599));
1988- * points .add(new GeoPosition(-122.132756, 47.654009));
1987+ * getPolygonPoints .add(new GeoPosition(-122.143035, 47.653536));
1988+ * getPolygonPoints .add(new GeoPosition(-122.187164, 47.617556));
1989+ * getPolygonPoints .add(new GeoPosition(-122.114981, 47.570599));
1990+ * getPolygonPoints .add(new GeoPosition(-122.132756, 47.654009));
19891991 * GeoLineString getPolygonRoute = new GeoLineString(getPolygonPoints);
19901992 *
19911993 * // simple
1992- * asyncClient.searchAlongRoute(new SearchAlongRouteOptions("burger", 1000, getPolygonRoute));
1994+ * SearchAddressResult result = asyncClient.searchAlongRoute(
1995+ * new SearchAlongRouteOptions("burger", 1000, getPolygonRoute)).block();
19931996 *
19941997 * // options
19951998 * asyncClient.searchAlongRoute(
19961999 * new SearchAlongRouteOptions("burger", 1000, getPolygonRoute)
19972000 * .setCategoryFilter(Arrays.asList(7315))
1998- * .setTop(5));
2001+ * .setTop(5)).block() ;
19992002 *
20002003 * // complete
20012004 * asyncClient.searchAlongRouteWithResponse(
20022005 * new SearchAlongRouteOptions("burger", 1000, getPolygonRoute)
2003- * .setCategoryFilter(Arrays.asList(7315))
2004- * .setTop(5)).block().getStatusCode();
2006+ * .setCategoryFilter(Arrays.asList(7315)).setOperatingHours(OperatingHoursRange.NEXT_SEVEN_DAYS )
2007+ * .setTop(5)).block().getStatusCode();
20052008 * </pre>
20062009 * <!-- end com.azure.maps.search.async.search_along_route -->
20072010 *
@@ -2024,26 +2027,27 @@ public Mono<Response<SearchAddressResult>> searchAlongRouteWithResponse(SearchAl
20242027 *
20252028 * // create route points
20262029 * List<GeoPosition> getPolygonPoints = new ArrayList<>();
2027- * points .add(new GeoPosition(-122.143035, 47.653536));
2028- * points .add(new GeoPosition(-122.187164, 47.617556));
2029- * points .add(new GeoPosition(-122.114981, 47.570599));
2030- * points .add(new GeoPosition(-122.132756, 47.654009));
2030+ * getPolygonPoints .add(new GeoPosition(-122.143035, 47.653536));
2031+ * getPolygonPoints .add(new GeoPosition(-122.187164, 47.617556));
2032+ * getPolygonPoints .add(new GeoPosition(-122.114981, 47.570599));
2033+ * getPolygonPoints .add(new GeoPosition(-122.132756, 47.654009));
20312034 * GeoLineString getPolygonRoute = new GeoLineString(getPolygonPoints);
20322035 *
20332036 * // simple
2034- * asyncClient.searchAlongRoute(new SearchAlongRouteOptions("burger", 1000, getPolygonRoute));
2037+ * SearchAddressResult result = asyncClient.searchAlongRoute(
2038+ * new SearchAlongRouteOptions("burger", 1000, getPolygonRoute)).block();
20352039 *
20362040 * // options
20372041 * asyncClient.searchAlongRoute(
20382042 * new SearchAlongRouteOptions("burger", 1000, getPolygonRoute)
20392043 * .setCategoryFilter(Arrays.asList(7315))
2040- * .setTop(5));
2044+ * .setTop(5)).block() ;
20412045 *
20422046 * // complete
20432047 * asyncClient.searchAlongRouteWithResponse(
20442048 * new SearchAlongRouteOptions("burger", 1000, getPolygonRoute)
2045- * .setCategoryFilter(Arrays.asList(7315))
2046- * .setTop(5)).block().getStatusCode();
2049+ * .setCategoryFilter(Arrays.asList(7315)).setOperatingHours(OperatingHoursRange.NEXT_SEVEN_DAYS )
2050+ * .setTop(5)).block().getStatusCode();
20472051 * </pre>
20482052 * <!-- end com.azure.maps.search.async.search_along_route -->
20492053 *
@@ -2093,7 +2097,7 @@ Mono<Response<SearchAddressResult>> searchAlongRouteWithResponse(SearchAlongRout
20932097 * asyncClient.beginFuzzySearchBatch(fuzzyOptionsList).getSyncPoller().getFinalResult();
20942098 * </pre>
20952099 * <!-- end com.azure.maps.search.async.fuzzy_search_batch -->
2096- *
2100+ *
20972101 * @param optionsList a list of {@link FuzzySearchOptions} to be searched.
20982102 * @throws IllegalArgumentException thrown if parameters fail the validation.
20992103 * @throws HttpResponseException thrown if the request is rejected by server.
0 commit comments