Geo v1.4.0 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
Summary
Macros
Casts the 2 geometries given to geographies in order to check for distance in meters
Macros
Casts the 2 geometries given to geographies in order to check for distance in meters