-
Name Type Description options
Opciones Geocoding
Name Type Description bounds
module:cercaliagl/Bounds~Bounds | undefined Bounds to search categories inside
buffer
number | undefined Buffer size for search
categories
Array.<string> | undefined List of categories to obtain. The 'pois' option must be null.
gridsize
number | undefined Gridsize
height
number | undefined Height in pixels.
pois
Array.<string> | undefined POIs IDs list to obtain. If this option is included, the categories property will be ignored. Does not apply any other constructor options.
searchByScale
boolean | undefined Specify if you need to group POIs depending on parameters: bounds, width and height.
width
number | undefined Width, in pixels.
wkt
string | undefined Get all the POIs from selected categories, that intersects a polygon, in WKT format
Extends
- module:cercaliagl/service/Service~Service
Methods
-
Clear response.
-
Execute the server request and the callback function to be processed with the response
Name Type Description callbackFn
function Funcion callback to parse server data's response.
-
Returns the WKT of the spatial query
Returns:
Coordinate
-
Returns:
gridsize Gridsize in pixels.
-
Returns:
height Height in pixels
-
Returns the POIs categories to search
Returns:
categories list string
-
Returns the POIs list
Returns:
Returns a POI IDs array
-
Returns the response with the 'geocode' function request
Returns:
response
-
Returns:
width
-
Returns the map area corresponding to the spatial query. The format is WKT
Returns:
Geometria WKT (string)
-
Returns:
boolean Return if shows if POIs by scale search is used.true
orfalse
.
-
Set the polygon for the spatial query. String WKT format. If spatial query use map bounds, the WKT will be ignored and must be reset next time
Name Type Description bounds
module:cercaliagl/Bounds~Bounds Bounds
-
Name Type Description gridsize
number Gridsize in pixels.
-
Set height
Name Type Description height
number Height in pixels
-
Set the POIs list to search.
Name Type Description categories
Array.<string> POIs ID list, in an array
-
Set the POIs categories to search.
Name Type Description categories
Array.<string> categories list string
-
Name Type Description searchByScale
boolean Enable search by scale.
true
orfalse
. -
Name Type Description width
number Width in pixels.
-
Set the polygon for the spatial query. String WKT format If spatial query use a WKT, the map bounds will be ignored and must be reset next time
Name Type Description wkt
string WKT geometry