The class responsible for searching informations on the map, current address points.
EMAPI. | The class responsible for searching informations on the map, current address points. |
Functions | |
EMAPI. | The constructor of a new instance of EMAPI.Finder objects. |
destroy | Destroys object of EMAPI.Finder class |
setCountry | Sets the context of the country where data searching is. |
getCountry | Returns ccTLD code country currently set for the searching. |
search | Searches address points consistent with the specified address. |
getCoordinates | Gets the location on the map of one of the address points searched using the search function. |
degeocode | Searches the geographic information for points with the given coordinates. |
getObjectCategories | Returns in the form of substitution function for all the customer’s parameters. |
getPOICategories | POI. |
searchObjects | Searches for customer static objects . |
searchPOI | Finds POI objects. |
The constructor of a new instance of EMAPI.Finder objects.
obj | {Object} EMAPI.Map object class representing the map which is searched. |
options | {Object} An object with additional parameters of class instance. |
search: function( address, callback )
Searches address points consistent with the specified address. Data transmitted to the substitution in the second parameter containing a list of matching feature address points (geocodeInfoArray) included:
If any of the components present in the output section address, that means it has been rejected during the search.
address | {String} Address to search in the format “(city|code)[,street [number][;(code|adm1[,adm2[,adm3]])]”, which means that there is a city or zip code at the beginning, after that there is street with the number and after semicolon there are zip code or three administrative areas (from highest to lowest level) separated by commas. Letters are case-insensitive. |
callback | {Function} Function for searching results. |
getCoordinates: function( index, callback )
Gets the location on the map of one of the address points searched using the search function. The data is transmitted to the substitution in the second parameter functions contain an element of the structure passed in accordance with the search function, but returns the corresponding error code (result: 0 = ok, 1 = invalid index position in the list of results).
index | {Integer} Position of the desired item from the list of search results (value from the range 0-[number of results reduced by 1]). |
callback | {Function} Function for searching results. |
degeocode: function( points, zoom, callback )
Searches the geographic information for points with the given coordinates. Data transmitted to the substitution function as an array of address information degeocodeInfoArray included:
points | {Array(EMAPI.LonLat)} Points for degeocoding. |
zoom | {Integer} Zoom of degeocoding information (value from the scope 0-17). |
callback | {Function} Function for searching results. |
getObjectCategories: function( callback )
Returns in the form of substitution function for all the customer’s parameters. Data transmitted to the substitution functions include an array of included categories:
callback | {Function} Service of parameters of category. |
getPOICategories: function( callback )
POI. Returns in the form of substitution function for all the POI parameters. Data transmitted to the substitution functions include an array of included categories:
callback | {Function} Service of parameters of category. |
searchObjects: function( categoryNames, searchText, lonLat, objectCount, queryRadius, objectIDs, callback )
Searches for customer static objects . Data transmitted to the substitution in the second parameter function containing a list of found object (searchObjectArray) included:
Includes all the parameters passed to the function (conjunction of conditions).
categoryIds | {String} A list of subcategories, which is search to be (subcategory names separated by semicolons). |
searchText | {String} Keyword specifying the objects sought. The size of letters doesn’t matter. |
lonLat | {EMAPI.LonLat} EMAPI.LonLat representing the coordinates of the central point, which is searched. |
objectCount | {Integer} The maximum number of expected results (mustn’t be bigger than 50). |
queryRadius | {Integer} The maximum search radius (in meters). |
objectIDs | {String} The list of specific IDs requested objects (IDs separated by semicolons). |
callback | {Function} The service of searching results. |
searchPOI: function( categoryNames, searchText, lonLat, objectCount, queryRadius, objectIDs, callback )
Finds POI objects. Data transmitted to the substitution in the second parameter function containing a list of found object (searchObjectArray) included:
Includes all the parameters passed to the function (conjunction of conditions).
categoryIds | {String} A list of subcategories, which is search to be (subcategory names separated by semicolons). |
searchText | {String} Keyword specifying the objects sought. The size of letters doesn’t matter. |
lonLat | {EMAPI.LonLat} EMAPI.LonLat object representing the coordinates of the central point, which is searched. |
objectCount | {Integer} The maximum number of expected results (mustn’t be bigger than 50). |
queryRadius | {Integer} The maximum search radius (in meters). |
objectIDs | {String} The list of specific IDs requested objects (IDs separated by semicolons). |
callback | {Function} The service of searching results. |
Destroys object of EMAPI.Finder class
destroy: function()
Sets the context of the country where data searching is.
setCountry: function( country )
Returns ccTLD code country currently set for the searching.
getCountry: function()
Searches address points consistent with the specified address.
search: function( address, callback )
Gets the location on the map of one of the address points searched using the search function.
getCoordinates: function( index, callback )
Searches the geographic information for points with the given coordinates.
degeocode: function( points, zoom, callback )
Returns in the form of substitution function for all the customer’s parameters.
getObjectCategories: function( callback )
POI.
getPOICategories: function( callback )
Searches for customer static objects .
searchObjects: function( categoryNames, searchText, lonLat, objectCount, queryRadius, objectIDs, callback )
Finds POI objects.
searchPOI: function( categoryNames, searchText, lonLat, objectCount, queryRadius, objectIDs, callback )