Add QP on user carte
This commit is contained in:
parent
e928284c15
commit
f4e63d40b0
12 changed files with 200 additions and 24 deletions
|
@ -1,10 +1,12 @@
|
|||
class GeojsonService
|
||||
def self.to_polygon coordinates
|
||||
{
|
||||
def self.to_json_polygon coordinates
|
||||
polygon = {
|
||||
geo: {
|
||||
type: "Polygon",
|
||||
coordinates: [coordinates]
|
||||
}
|
||||
}
|
||||
|
||||
polygon.to_json
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue