Add ApiGeo RPG adapter
This commit is contained in:
parent
ed46e2c3be
commit
7ffbe417f9
5 changed files with 49 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue