Hi thanks for this module, a very useful addition to Geolocation fields.

I was wondering whether you could add a feature to allow PHP code snippets to be entered for the latitude and longitude fields. This way we can show the distance of Geolocation fields to a reference point calculated and returned by a function in another module.
The reference point could be anything and may change over time, for instance the visitor's location as retrieved by HTML5 or by an IP address lookup.

CommentFileSizeAuthor
#1 location-proximity-field.png33.48 KBrobcarr

Comments

robcarr’s picture

StatusFileSize
new33.48 KB

This was a feature in Location module and offered the following Field Settings options as the origin when calculating proximity:

  • User Lat/Long
  • Static Lat/Long
  • Distance filter
  • Post code
  • PHP
  • nid
  • uid

Such options seems to address a lot of feature requests in this queue, and not sure whether the relevant Views handlers in the Location module are a good place to start (or that simple) for custom handlers in this module.

I know I'd like to see the NID argument as an option, but a PHP field would be a useful start.

rickharington’s picture

This would be great if possible. Would add a lot of additional functionality to the module.

windsurfitaly’s picture

it was super if referred to geofield module