GeoCoder URL Query

6 posts by 3 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: June 5, 2012   (RSS)

Dear Support Team,

How can I do a url/search query to show listing within specific parameters?

IE show events within 50miles... 25miles... etc

Thanks

Re: [Illume Magazine] GeoCoder URL Query

By Damon - May 29, 2012

Hi,

Yes you can use the GeoCoder to create a search from that allows user to search for events within a certain distance of an address.

They can enter an address, then select from a dropdown the distance (with 5 miles, 10 miles etc). The distance dropdown can be customized with any distance options you want.

If you have any other questions about the GeoCoder, please let me know.

Thanks!
Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Damon] GeoCoder URL Query

Hi Damon,

Thanks for the prompt reply. I have a sample page setup here: http://www.illumemagazine.com/indulge/xxx.php

What would I use as the url query to show a list of places nearby (no radius limit)..starting with closest to farthest?

Many thanks for your help.

Re: [Jason] GeoCoder URL Query

Hi Jason,

Thanks for the quick reply. What if I want to implement this code on a mobile device or website that pull user geolocation? How can I insert the user location into the code and then show a list based on a 100 mile radius?

Re: [Illume Magazine] GeoCoder URL Query

By Jason - June 5, 2012

Hi,

There will be a couple of options for you for doing this. Basically, you need to pull the lat/long of the current user (accuracy will vary depending on location). You can either do this on the server side, by querying a 3rd party API to get coordinates based on an IP address (see here http://stackoverflow.com/questions/7766978/geo-location-based-on-ip-address-php)

or you can use javascript on the browser to try to determine the location and use jquery to update your list of "nearby results" (see here: http://en.wikipedia.org/wiki/W3C_Geolocation_API). Your ability to use this second option will depend on the browser being used to at the time.

Hope this helps get you started.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/