Passing coordinates automatically to geocoder

4 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: May 26, 2011   (RSS)

By ILLUME-MEDIA-LABS - May 24, 2011

Hi,

I am getting ready to purchase geocoder plugin, but I wanted to know how to automatically pass the user coordinates, based on web browser, or more precisely on the mobile platform, directly into geocoder for results.

Many Thanks!

Re: [Illume Magazine] Passing coordinates automatically to geocoder

By Jason - May 25, 2011

Hi,

The main function of the geocoder plugin is to take addresses and turn them into latitude and longitude coordinates. Any maps that are created with the help of the geocoder are simply based on latitude and longitude coordinates stored in the database.

If you already have coordinates that you want to use you can do one of two things:

1) Save those coordinates to the appropriate record
2) Use those coordinates directly in the javascript that creates the map instead of outputting the coordinates from the database.

It's important to note that the geocoder itself doesn't generate the maps, but uses the google map API (version 3). For more information on their API, take a look here:
http://code.google.com/apis/maps/documentation/javascript/

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

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

Re: [Jason] Passing coordinates automatically to geocoder

By ILLUME-MEDIA-LABS - May 26, 2011

Hello Jason,

Thanks for the quick reply. Do you know how i might be able to pull coordinates based on browser/ip location?

What I ideally want to do is... to guess the user's location and then suggest the nearest 10 listings showing with markers on the map...

Any ideas?

Re: [Illume Magazine] Passing coordinates automatically to geocoder

By Jason - May 26, 2011

Hi,

There are a number of different tools out there for getting coordinates based on ip addresses.

Try this google search:
http://www.google.ca/#hl=en&source=hp&q=get+coordinates+from+ip+address&oq=get+coordinates+from+ip&aq=1&aqi=g3g-j1g-m1&aql=&gs_sm=e&gs_upl=3504l9281l0l23l22l0l7l7l0l311l2981l2.4.8.1&bav=on.2,or.r_gc.r_pw.&fp=6ef50d66b38089c9&biw=1600&bih=685

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

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