Geo.PostGIS
Postgis functions that can used in ecto queries PostGIS Function Documentation
Currently only the OpenGIS functions are implemented
ex.
defmodule Example do
import Ecto.Query
import Geo.PostGIS
def example_query(geom) do
from location in Location, limit: 5, select: st_distance(location.geom, ^geom)
end
end