News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPClasses.org Blog:
Locating addresses on Google Maps embedded in PHP generated Web forms
November 04, 2009 @ 12:45:51

On the PHPClasses.org blog there's a new tutorial showing how to use the goe-location support the Google Maps API offers to search for and find an address.

Sometimes it is necessary to get the coordinates of a location on the map. The map location plug-in lets the user point to any location by clicking on the map. [...] However, when the user does not know exactly where is the location he is looking for, it may be painful to find it just by zooming and looking around the map. The latest release of this plug-in makes possible for the users to type the address or name of the city you are looking for and search for the location without further effort.

He uses the form creation package to set up a simple address form (address and country) and a call to its connect() method to link Javascript to the form. When submitted, the new features of the class get to work and ask the Google API for the location and a map is generated with a marker on the spot requested.

0 comments voice your opinion now!
form googleapi googlemaps address search class


blog comments powered by Disqus

Similar Posts

DevShed: Using Abstract Factory Classes in PHP 5 to Work with Online Forms

Internet.com: Plotting Map Markers Dynamically Using the Google Maps API, jQuery, PHP, and MySQL

DevShed: Using Yahoo Web Services to Perform Searches with an Object-Oriented Approach

Sameer Borate's Blog: Selenium IDE Tutorial - Part 2

php|architect: Bing Powered 404 for non-WordPress websites


Community Events





Don't see your event here?
Let us know!


interview framework library laravel version opinion release artisanfiles community security introduction list symfony tool conference composer language podcast voicesoftheelephpant series

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework