Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wcoder/node-psearch

NodeJS module for the search of popular map using Yandex.Maps API
https://github.com/wcoder/node-psearch

Last synced: about 7 hours ago
JSON representation

NodeJS module for the search of popular map using Yandex.Maps API

Awesome Lists containing this project

README

        

# node-psearch [![node-psearch API Documentation](https://www.omniref.com/js/npm/node-psearch.png)](https://www.omniref.com/js/npm/node-psearch)
NodeJS module for the search of popular map using Yandex.Maps API.

## Install
```
npm install node-psearch
```

## Usage

```
var psearch = require('node-psearch');

// ...
```

Show [example](https://github.com/wcoder/node-psearch/blob/master/example/run.js).

Request options:

* `query` - Text search query. For example, the name of the object.
* `ll` - `{longitude,latitude}` longitude and latitude of the center of the field (in degrees).
* `spn` - Length of the center of gravity (degrees).
* `count` - Maximum number of displayed results.

Result format:

* `name` - `string` - Name of the object
* `coordinates` - `array` - Сoordinates `[longitude, latitude]`