This module implements API 2GIS calls for NodeJS. At the moment the following sections API:
npm install 2gis-api
var api = ;api;api;api;
configure allows to set the parameters common to all queries. It is convenient to use for the parameters:
Unique user API-key. Required parameter. To obtain the API-key necessary to fill in the application form.
Indicates the version of API, with which we are working. The default value is
API service URL. Parameter is not included in the query. The default value is
The method returns a list of projects (a large city and surrounding villages). Values of incoming and outgoing parameters are listed in the API method documentation.
Selects rubrics for which this rubric is the parent. API method documentation.
Searches for firms from the given query and displays a list of found results paginated. API method documentation.
Searches for the given query firms in this category and gives the list of matches paginated. API method documentation.
Returns a list of offices of the company by a unique identifier. API method documentation.
Searches for advertisers within a given query. API method documentation.
Returns detailed information about the profile of the branch by its unique identifier. API method documentation.
Selects geoobjects that match the search criteria. API method documentation.
Returns information about the geo object by its identifier. API method documentation.
bound [point1] = 37.432,55.836 & bound [point2] = 37.633,55.637can be represented as an object:
Have a bug? Please create an issue here on GitHub!
(The MIT License)
Copyright (c) 2013 Alexander Prozorov (firstname.lastname@example.org)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.