-
Name Type Description optionsOpciones Geocoding
Name Type Description boundsmodule:cercaliagl/Bounds~Bounds | undefined Bounds to search categories inside
buffernumber | undefined Buffer size for search
categoriesArray.<string> | undefined List of categories to obtain. The 'pois' option must be null.
gridsizenumber | undefined Gridsize
heightnumber | undefined Height in pixels.
poisArray.<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.
searchByScaleboolean | undefined Specify if you need to group POIs depending on parameters: bounds, width and height.
widthnumber | undefined Width, in pixels.
wktstring | 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 callbackFnfunction 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.trueorfalse.
-
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 boundsmodule:cercaliagl/Bounds~Bounds Bounds
-
Name Type Description gridsizenumber Gridsize in pixels.
-
Set height
Name Type Description heightnumber Height in pixels
-
Set the POIs list to search.
Name Type Description categoriesArray.<string> POIs ID list, in an array
-
Set the POIs categories to search.
Name Type Description poisArray.<string> categories list string
-
Name Type Description searchByScaleboolean Enable search by scale.
trueorfalse. -
Name Type Description widthnumber 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 wktstring WKT geometry