import Client from './client'; export default class Maproutes extends Client { constructor(opts) { let options = opts; if (typeof opts === 'string') { options = { host: opts }; // convert host string to options object } options.serviceName = 'roadquality'; super(options); } getSnap(options = {}) { return this.makeRequest(`${this.host}/mapRoutes/snap`, options); } getByPoints(points, options = {}) { return this.makeRequest(`${this.host}/mapRoutes/${points}`, options); } }