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