Page 1 of 1
Google Map
Posted: Tue Oct 06, 2009 4:50 am
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..
Re: Google Map
Posted: Tue Oct 06, 2009 10:23 am
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.