Results 1 to 1 of 1

Thread: Using Google maps API to look up lat/long

  1. #1
    Thread Starter
    Rookie nick5a1's Avatar
    Join Date
    Apr 2012
    Posts
    9
    Thanks
    0
    Thanked 1 Time in 1 Post

    Arrow Using Google maps API to look up lat/long

    Hi all,

    If you view the submit a job page (http://cl.ly/2t2p2e1928281j0h3F30) you can see that when entering a location the jobroller theme uses the Google maps API to look up the exact location. The relevant code is in theme-geolocation.php. It then stores the location as latitude and longitude values in two custom fields (_jr_geo_latitude & _jr_geo_longitude), which is used when searching locations.


    I am importing jobs manually that have a location as a text string but do not have a latitude/longitude value. I'd like to write a function that looks up the lat & long via the Google Maps API when each job is imported, just like when a job is submitted on the website. Because the theme already does this I figure I should be able to hook into that same function in theme-geolocation.php. Can anyone point me in the right direction? Is this a simple task or does it involve a lot of coding work?

    Thanks.


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: August 24th, 2012, 03:07 AM
  2. Google Maps
    By wikimarine in forum ClassiPress General Discussion
    Replies: 2
    Last Post: April 10th, 2012, 05:20 PM
  3. Google maps pin....
    By aj270303 in forum Report ClassiPress Bugs
    Replies: 3
    Last Post: March 15th, 2012, 06:29 PM
  4. Google maps
    By massimorufo in forum Report ClassiPress Bugs
    Replies: 3
    Last Post: May 10th, 2011, 04:47 AM