Google Map

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
topretheesh
Forum Newbie
Posts: 4
Joined: Tue Sep 16, 2008 7:31 am

Google Map

Post by topretheesh »

I have done Google Map Integration for one my project. But for that we need the "latitude and longitude" for this. How we will find the these values using PHP 5.1.6. In 5.2, we can do it using json_decode function. But its not enough for me..

Thanks in advance..
User avatar
chopsmith
Forum Commoner
Posts: 56
Joined: Thu Nov 13, 2008 10:40 am
Location: Red Bank, NJ, USA

Re: Google Map

Post by chopsmith »

I'm not 100% certain what you are trying to do, but if you've worked with the Google Maps API, you probably came across the GClientGeocoder class:

http://code.google.com/apis/maps/docume ... ntGeocoder

Check out the getLatLang method of that class, which is the first one listed at the link above. What exactly are you trying to do? If you wish to use PHP to get the lat/lang of an address, what service will you be using? PHP doesn't have any built in geocoding, if that's what you mean.
Post Reply