UNPKG

search-destination-async

Version:

Search destinations by name, address, point of interest or coordinates. Using utility async.js

22 lines (17 loc) 460 B
var Scheduler = require('./scheduler'); function SearchDestinationAsync() {} /** * @access public */ SearchDestinationAsync.prototype.search = function (data) { var scheduler = new Scheduler(); scheduler.runAsyncProcessSearch(data); }; /** * @access public */ SearchDestinationAsync.prototype.reverse = function (data) { var scheduler = new Scheduler(); scheduler.runAsyncProcessReverse(data); }; module.exports = new SearchDestinationAsync();