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. |
| setLanguage | Sets the language context of the results which were returned by the search and geocode function. |
| getCountry | Returns ccTLD code country currently set for the searching. |
| getLanguage | Returns context of the currently choosen searching language. |
| geocode | 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 | Returns in the form of substitution function for all the POI parameters. |
| 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. |
geocode: function ( country, city, zip, street, streetnumber, 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.
| country | {String} Full country name . |
| city | {String} City name. |
| zip | {String} zip code. |
| street | {String} Street. |
| streetnumber | {String} Street number. |
| 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:
Fields foundLength include the distance in meters object found from that point) In addition error code is passed (result: 0 = ok, 1 = no data).
| 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 )
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. ata 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 )
Sets the language context of the results which were returned by the search and geocode function.
setLanguage: function ( language )
Returns ccTLD code country currently set for the searching.
getCountry: function()
Returns context of the currently choosen searching language.
getLanguage: function ()
Searches address points consistent with the specified address.
geocode: function ( country, city, zip, street, streetnumber, 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 )
Returns in the form of substitution function for all the POI parameters.
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 )