Wednesday 15 August 2012

ruby on rails - Geocoding two addresses in one model -



ruby on rails - Geocoding two addresses in one model -

i want geocode 2 addresses in 1 model, ie. journey has startaddress , endaddress. thus, have 3 attributes on model: startaddress start_longtitude start_lattitude endaddress end_longtitude end_lattitude

how can geocode can phone call nearbys function find i) journeys start nearby given journey , ii) journeys end nearby particular journey? help appreciated

there recent update allows this. https://github.com/alexreisner/geocoder/pull/692

geocode model own geocoding function, in near function specify alternate attrbitutes want search for.

ruby-on-rails ruby ruby-on-rails-4 geocoding rails-geocoder

No comments:

Post a Comment