Важно
This feature is available in the Full MapKit SDK version
Package com.yandex.mapkit.search
Enum SortOrigin
java.lang.Object
↳ java.lang.Enum
↳ com.yandex.mapkit.search.SortOrigin
final enum SortOrigin
Sort origin types when results are ordered by distance (see mapkit.search.SortType).
Enum Constant Summary
Enum Constants |
Description |
Sort origin is a user position. |
|
Sort origin is a toponym extracted from the user query. |
|
Sort origin is directly specified by client. |
Summary
Methods
Type and modifiers |
Method and Description |
|
values() |
|
valueOf(java.lang.String name) |
Enum Constants Detail
USER
|
USER |
Sort origin is a user position.
User position can be set via {link SearchOptions}.
QUERY
|
QUERY |
Sort origin is a toponym extracted from the user query.
For example this type can be set for queries like "cafe near Central Park".
REQUEST
|
REQUEST |
Sort origin is directly specified by client.
This type can be set for sessions with {link search.Session#setSortByDistance(const mapkit.geometry.Geometry)} called.
Methods
values
SortOrigin[] values() |
valueOf
SortOrigin valueOf(java.lang.String name) |