mirror of https://github.com/pelias/api.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
340 B
19 lines
340 B
8 years ago
|
'use strict';
|
||
|
|
||
|
const _ = require('lodash');
|
||
|
|
||
|
const ServiceConfiguration = require('./ServiceConfiguration');
|
||
|
|
||
|
class PointInPolygon extends ServiceConfiguration {
|
||
|
constructor(o) {
|
||
|
super('pip', o);
|
||
|
}
|
||
|
|
||
|
getUrl(req) {
|
||
|
return `${this.baseUrl}/${req.clean.point.lon}/${req.clean.point.lat}`;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
module.exports = PointInPolygon;
|