Function to get lon and lat dynamicly based on place???

Discussion in 'PHP' started by 123GoToAndPlay, Jul 15, 2009.

  1. #1
    Hi,

    I have a table with places and longitude latitude. Now for some places i don't have the longitude latitude filled. I don't want to do it manually.

    Is there a webservice which i can use to dynamiclly fill the longitude latitude based on place???

    Any tips?
     
    123GoToAndPlay, Jul 15, 2009 IP
  2. 123GoToAndPlay

    123GoToAndPlay Peon

    Messages:
    669
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    ok found a solution by calling
    
    http://maps.google.com/maps/geo?q=".$place."&output=csv&oe=utf8&sensor=false&key=".$api_key."
    
    Code (markup):
     
    123GoToAndPlay, Jul 15, 2009 IP