ruby on rails - RoR Location Search -
sorry open question wondering whether had advice on best way create app searches properties within particular radius.
the best illustration of looking accomplish rightmove.
i wondering best setup adding city, town , postcode info , making searchable.
i have been reading geocoder wondering whether best alternative such app or whether there alternatives. illustration recommend storing location info in own database or using api feed in information.
any advice or links people can offer appreciated! thanks.
the approach purely depends on requirements , availability of geocoded info location want geocoded data.
using geocoder gives advantage don't have bother updating geo-database given location. has own downside (request timeout, info not available particular location, licensing, query limits etc), can addressed.
if okay storing info in db, can accomplish same thing using postgresql+postgis setup. postgis module gives ability spatial querying in terms of radius, checking if given goe-point falls with-in pre-defined polygon etc , since these executed within db, performance good. approach has 2 advantages, don't have sign service , no timeout errors. downside of approach have maintain/update location info yourself.
i have done handful of ror projects sec approach , working fine quite well.
hope helps.
ruby-on-rails ruby-on-rails-3 geolocation location postal-code
No comments:
Post a Comment