CategoryQuery.Area (API Reference)
Class CategoryQuery.Area
- Enclosing class:
- CategoryQuery
Area to perform search on.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal GeoCoordinatesGeographic coordinates of the center around which to provide the most relevant places.final GeoBoxGeographic rectangle area in which to provide the most relevant places.final GeoCircleGeographic circle area in which to provide the most relevant places.final GeoCorridorGeographic corridor area in which to provide the most relevant places. -
Constructor Summary
ConstructorsConstructorDescriptionArea(GeoCoordinates areaCenter) Constructs a new instance of this class from provided parameters.Area(GeoCoordinates areaCenter, GeoBox boxArea) Constructs a new instance of this class from provided parameters.Area(GeoCoordinates areaCenter, GeoCircle circleArea) Constructs a new instance of this class from provided parameters.Area(GeoCorridor corridorArea, GeoCoordinates areaCenter) Constructs a new instance of this class from provided parameters. -
Method Summary
-
Field Details
-
areaCenter
Geographic coordinates of the center around which to provide the most relevant places.
-
boxArea
Geographic rectangle area in which to provide the most relevant places.
-
circleArea
Geographic circle area in which to provide the most relevant places.
-
corridorArea
Geographic corridor area in which to provide the most relevant places. The contained polyline and half-width define the area that will be used in a search query.
When used with
SearchEngine, the polyline is compressed and sent. More complex polylines with large amounts of coordinates and with smaller half-width may have the less relevant part removed, such as the one far away from the search center. This usually makes no difference, because there will be enough POIs near the search center. For use cases where it is important to search the entire polyline, half-width can be increased or not set. For example: Route between New York and Chicago with half-width 800 will be added to request without removing the far away part, but route of the same length (around 360km) between Milan (Italy) and Konstanz (Germany) will have the far away part removed due to its complexity.When
corridorAreais provided,areaCenterhas to be within it, otherwiseareaCenteris ignored when searching.
-
-
Constructor Details
-
Area
Constructs a new instance of this class from provided parameters.
- Parameters:
areaCenter-Geographic coordinates of the center around which to provide the most relevant places.
-
Area
Constructs a new instance of this class from provided parameters.
- Parameters:
areaCenter-Geographic coordinates of the center around which to provide the most relevant places.
boxArea-Geographic rectangle area in which to provide the most relevant places.
-
Area
Constructs a new instance of this class from provided parameters.
- Parameters:
areaCenter-Geographic coordinates of the center around which to provide the most relevant places.
circleArea-Geographic circle area in which to provide the most relevant places.
-
Area
Constructs a new instance of this class from provided parameters. The given corridor and center define the area that will be used in the search query.
When used with
SearchEngine, the polyline is compressed and sent. More complex polylines with large amounts of coordinates and with smaller half-width may have the less relevant part removed, such as the one far away from the search center. This usually makes no difference, because there will be enough POIs near the search center. For use cases where it is important to search the entire polyline, half-width can be increased or not set. For example: Route between New York and Chicago with half-width 800 will be added to request without removing the far away part, but route of the same length (around 360km) between Milan (Italy) and Konstanz (Germany) will have the far away part removed due to its complexity.The area center has to be within the corridor, otherwise it is ignored.
- Parameters:
corridorArea-Geographic corridor area in which to provide the most relevant places.
areaCenter-Geographic coordinates of the prioritized area center.
-
-
Method Details