On May 29, 8:51 am, Paul van Hoven <[email protected]>
wrote:
> I'm using Opera Mini. The user can enter a address. Then i need to
> transform this address into coordinate lat and lng. But since Opera
> Mini can't handle Javascript i would like to use the following
> approach: The user enters his address into a form with Opera Mini.

No problem if you want to do this on the server in PHP.

Use the GoogleMapAPI
http://www.phpinsider.com/php/code/GoogleMapAPI/

This is very simple to do

Your form can accept the address and then submit to the API and GMA
will send back the lat/long, I have a modified versions which can
provide the Accuracy number as well if you want it. I needed it for my
use.

getGeocode($address)
    --------------------

        This looks up the geocode of an address. It will use the
database cache
        if available. If you want to lookup a geocode without using
the database
        cache, use geoGetCoords(). Note: this function is used
internally by the
        library, it isn't normally necessary unless you have a
specific need and
        you know what you are doing.

        Example:

        $geocode = $map->getGeocode('237 S 70th suite 220 Lincoln NE
68510');

        echo $geocode['lat'];
        echo $geocode['lon'];
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to