Add QP on user carte

This commit is contained in:
Xavier J 2015-11-25 10:26:55 +01:00
parent e928284c15
commit f4e63d40b0
12 changed files with 200 additions and 24 deletions

View file

@ -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