You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've read the discussion over in #1524 and while I fully agree that more complex geocalculations should be left to a dedicated gem, it would still be interesting to see PostGis support in geocoded_by.
Here's my current workaround:
classFoo < ApplicationRecord# has columns :address (string), :latitude (decimal), :longitude (decimal) and :coordinates (st_point)geocoded_by:addressafter_validation:geocode_postgisprivatedefgeocode_postgisgeocode# fills latitude and longitudeself.coordinates="POINT(#{longitude}#{latitude})"# fills postgisendend
While this is not too hard to accomplish, it would be even better to be able to have PostGIS support in geocoder, similar to support (geocoded_by: :coordinates)
The text was updated successfully, but these errors were encountered:
Hi Alex!
I've read the discussion over in #1524 and while I fully agree that more complex geocalculations should be left to a dedicated gem, it would still be interesting to see PostGis support in
geocoded_by
.Here's my current workaround:
While this is not too hard to accomplish, it would be even better to be able to have PostGIS support in geocoder, similar to support (
geocoded_by: :coordinates
)The text was updated successfully, but these errors were encountered: