Hi Guys,
I am new to php and mysql and really need a distance calculator between nodes and users.
The idea is as follows: a search with a dropdown option ( Builders > Bricklayers > Plumbers > Carpenters etc ) and a search box on which a postcode has to be ientered by the User.
On submitting I would like a list of the chosen trade which is nearest to the user..
I have manged to make a search using g-map and views which shows the trades on the map but showing the distance and in order of nearest first is what I really need.....
I have found an interesting website which some of you may be able to do something with PHP Zip Code Range and Distance Calculation.
I asked the guys on Drupal.org but no one explained it to me so I was wondering if you UK guys could.
Any help would be appreciated.
Thanks
Robert
I would definitely have a
I would definitely have a look at the Location module at http://drupal.org/project/location
Last time I looked at doing
Last time I looked at doing this with Location Mod, it was simple enough to set up a view that plotted "Locations" on a Gmap. Also simple enough to calculate distance based on an authenticated user's pre-set location.
What I couldn't work out how to do last time I was playing with this is:
Enter UK Post Code in text field / exposed filter >> Long Lat looked up from UK Post Code >> Long lat compared with items using Location Module Data
That would be great. I've seen some Drupal Modules in the works but wondered if someone could update us on the situation