Add ApiGeo RPG adapter

This commit is contained in:
Paul Chavard 2018-10-23 15:37:13 +02:00
parent ed46e2c3be
commit 7ffbe417f9
5 changed files with 49 additions and 0 deletions

View file

@ -25,4 +25,15 @@ class GeojsonService
polygon.to_json
end
def self.to_json_polygon_for_rpg(coordinates)
polygon = {
polygonIntersects: {
type: "Polygon",
coordinates: [coordinates]
}
}
polygon.to_json
end
end