Hi,

I am not sure why you are posting a question about the Google Maps API
to this group. The welcome message explicitly states that this group
is focused on the Google DocumentsList Data API and the Google
Spreadsheets Data API.

You will want to repost your question in the maps group:

http://groups.google.com/group/Google-Maps-API

Cheers,
- Jochen

On Sep 19, 6:46 am, ofcori <[EMAIL PROTECTED]> wrote:
> hello,
> i want to create a form (the user has to introduce: address, city,
> state, zip-code) and a Search Button. T
> When the user clicks on this button it must appear one of this result:
> 1. It shows OK - the address is Valid
> 2. It shows Wrong Address
> 3. It gives suggestions, something like: Did you mean....  as you can
> see on this 
> link:http://maps.google.com/maps?f=q&source=s_q&sll=-40.446947%2C-71.01562...
>
> The first and the second result i can code, but i don't know how to
> deal with the 3rd answer, how to get the suggestions from Google Maps
> and how to list them.
>
> i atach my code till now.
> thank you and i hope that someone will help me!
>
> <hr align="RIGHT"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//
> EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> <html xmlns="http://www.w3.org/1999/xhtml"; xmlns:v="urn:schemas-
> microsoft-com:vml">
>   <head>
>     <meta http-equiv="content-type" content="text/html; charset=UTF-8"/
>
>     <title>Google Maps API Example: Simple Geocoding</title>
>     <script src="http://maps.google.com/maps?
> file=api&amp;v=2.x&amp;key=ABQIAAAAzr2EBOXUKnm_jVnk0OJI7xSosDVG8KKPE1-
> m51RBrvYughuyMxQ-i1QfUnH94QxWIa6N4U6MouMmBA" type="text/javascript"></
> script>
>     <script type="text/javascript">
>
>     var geocoder = null;
>
>     function initialize() {
>       if (GBrowserIsCompatible()) {
>              geocoder = new GClientGeocoder();
>       }
>     }//f
>       function showAddress(address) {
>       if (geocoder) {
>         geocoder.getLatLng(
>           address,
>           function(point) {
>             if (!point) {
>               alert("Wrong Address!");
>             } else {
>                    alert("OK  - Valid address!");
>                       }
>           }//f
>         );
>       }//if
>
>     }//function
>
>     function testAll (address, city, state, zip) {
>         var a=address+" "+city+" "+state+" "+zip;
>         showAddress(a);
>
>     }//function
>
>     </script>
>   </head>
>
>   <body bgcolor="Silver" onload="initialize()" onunload="GUnload()">
>     <form action="#" onsubmit="testAll(this.address.value,
> this.city.value, this.state.value, this.zip.value); return false">
>       <p>Address<br>
>         <input type="text" size="40" name="address" value="1600
> Amphitheatre Pky" /> </p>
>         City<br>
>         <p><input type="text" size="40" name="city" value="Mountain
> View" /></p>
>         State<br>
>         <p><input type="text" size="40" name="state" value="CA" /></p>
>         Zip<br>
>         <p><input type="text" size="40" name="zip" value="33433" /></
> p>
>         <input type="submit" value="Search" />
>       </p>
>
>     </form>
>   </body>
> </html>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Docs Data APIs" 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-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to