10 lines
169 B
Ruby
10 lines
169 B
Ruby
|
class GeojsonService
|
||
|
def self.to_polygon coordinates
|
||
|
{
|
||
|
geo: {
|
||
|
type: "Polygon",
|
||
|
coordinates: [coordinates]
|
||
|
}
|
||
|
}
|
||
|
end
|
||
|
end
|