Class StructuredQuery

  • java.lang.Object
    • com.here.sdk.search.StructuredQuery

  • public final class StructuredQuery
    extends java.lang.Object

    The options to specify a structured query. Only supported in OfflineSearchEngine (not available for all editions).

    Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.

    • Field Detail

      • query

        @NonNull
        public java.lang.String query

        Desired query to search.

      • areaCenter

        @NonNull
        public GeoCoordinates areaCenter

        Geographic coordinates of the prioritized area center.

      • addressElements

        @NonNull
        public StructuredQuery.AddressElements addressElements

        Query address elements to get the results from a specific geographical area.

      • resultType

        @Nullable
        public StructuredQuery.ResultType resultType

        An optional field to indicates the type of result expected.

    • Constructor Detail

      • StructuredQuery

        public StructuredQuery​(@NonNull
                               java.lang.String query,
                               @NonNull
                               GeoCoordinates areaCenter)

        Creates a new instance.

        Parameters:
        query -

        Desired query to search.

        areaCenter -

        Geographic coordinates of the prioritized area center.

    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object