<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16788" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi All,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>i work with Squeak and Seaside 2.8.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>In my application i have integrate a Google
StaticMap support from squeakSource GoogleStaticMaps.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Now i'm interested, when the user create a new
address, to define and save the relative <FONT face="Times New Roman"
size=3>geographic coordinates.</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>In the Google documentation i
read:</FONT> </DIV>
<DIV>
<P><FONT face=Arial
size=2>***********************************************************************************</FONT></P>
<P>Geocoding is the process of converting addresses (like "1600 Amphitheatre
Parkway, Mountain View, CA") into geographic coordinates (like latitude
37.423021 and longitude -122.083739), which you can use to place markers or
position the map. The Google Maps API Geocoding Service provides a direct way to
access a geocoder via an HTTP request.</P>
<P><SPAN style="COLOR: red">Note: </SPAN>the geocoding service may only be used
in conjunction with displaying results on a Google map; geocoding results
without displaying them on a map is prohibited. For complete details on allowed
usage, consult the <A
href="http://code.google.com/apis/maps/terms.html#section_10_12">Maps API Terms
of Service License Restrictions</A>.</P>
<H1><A id=GeocodingRequests name=GeocodingRequests></A>Geocoding Requests</H1>
<P>You may access the Google Maps API Geocoding Service directly over HTTP. To
access the geocoder, send a request to <A
href="http://maps.google.com/maps/geo?">http://maps.google.com/maps/geo?</A>
with the following parameters in the URL: </P>
<UL>
<LI><CODE>q</CODE> (<I>required</I>) — The address that you want to geocode.
<LI><CODE>key</CODE> (<I>required</I>) — Your API key.
<LI><CODE>sensor</CODE> (<I>required</I>) — Indicates whether or not the
geocoding request comes from a device with a location sensor. This value must
be either <CODE>true</CODE> or <CODE>false</CODE>. (Note that devices with
sensors generally perform their own geocoding by definition; therefore, most
geocoding requests to the Maps API Geocoding service should set
<CODE>sensor</CODE> to <CODE>false</CODE>.)
<LI><CODE>output</CODE> (<I>required</I>) — The format in which the output
should be generated. The options are <CODE>xml</CODE>, <CODE>kml</CODE>,
<CODE>csv</CODE>, or (default) <CODE>json</CODE>. (For more information, see
<A
href="http://code.google.com/intl/it/apis/maps/documentation/geocoding/index.html#Responses">Geocoding
Responses</A> below.)
<LI><CODE>oe</CODE> (<I>optional</I> but strongly encouraged) — The output
encoding format of the response. It is recommended that you set this output
encoding explicitly to <CODE>utf8</CODE> unless you have specific requirements
to handle other encoding types.
<LI><CODE>ll</CODE> (<I>optional</I>) — The {latitude,longitude} of the
viewport center expressed as a comma-separated string (e.g.
"ll=40.479581,-117.773438" ). This parameter only has meaning if the
<CODE>spn</CODE> parameter is also passed to the geocoder. (For more
information see <A
href="http://code.google.com/intl/it/apis/maps/documentation/geocoding/index.html#Viewports">Viewport
Biasing</A> below.)
<LI><CODE>spn</CODE> (<I>optional</I>) — The "span" of the viewport expressed
as a comma-separated string of {latitude,longitude} (e.g. "spn=11.1873,22.5"
). This parameter only has meaning if the <CODE>ll</CODE> parameter is also
passed to the geocoder. (For more information see <A
href="http://code.google.com/intl/it/apis/maps/documentation/geocoding/index.html#Viewports">Viewport
Biasing </A>below.)
<LI><CODE>gl</CODE> (<I>optional</I>) — The country code, specified as a ccTLD
("top-level domain") two-character value. (For more information see <A
href="http://code.google.com/intl/it/apis/maps/documentation/geocoding/index.html#CountryCodes">Country
Code Biasing</A> below.) </LI></UL>
<P>Note: The <CODE>gl</CODE> and <CODE>spn,ll</CODE> viewport parameters will
only influence, not fully restrict, results from the geocoder.</P>
<P>In this example, we request the geographic coordinates of Google's
headquarters:</P><PRE class=prettyprint><SPAN class=pln><A href="http://maps.google.com/maps/geo?q=1600+Amphitheatre+Parkway,+Mountain+View,+CA&output=json&oe=utf8&sensor=true_or_false&key=your_api_key">http</SPAN><SPAN class=pun>:</SPAN><SPAN class=com>//maps.google.com/maps/geo?q=1600+Amphitheatre+Parkway,+Mountain+View,+CA&output=json&oe=utf8&sensor=</SPAN><I><SPAN class=com>true_or_false</SPAN></I><SPAN class=com>&key=</SPAN><I><SPAN class=com>your_api_key</A></SPAN></I></PRE><PRE class=prettyprint><I><SPAN class=com>**********************************************</SPAN></I></PRE><PRE class=prettyprint><I><SPAN class=com><FONT face=Arial>Now :</FONT></SPAN></I></PRE><PRE class=prettyprint><I><SPAN class=com><FONT face=Arial>after the user crate new address i can create a new WAUrl as above with specific address.</FONT></SPAN></I></PRE><PRE class=prettyprint><I><SPAN class=com></SPAN></I><I><SPAN class=com><FONT face=Arial>My question is: how, i can, send from squeak this request to the internet for receive the answer?</FONT></SPAN></I></PRE><PRE class=prettyprint><I><SPAN class=com><FONT face=Arial>It's a good solution or i wrong?</FONT></SPAN></I></PRE><PRE class=prettyprint><I><SPAN class=com><P class=MsoNormal><FONT color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><FONT color=#000000>Any pointers would be greatly appreciated!<BR><BR>Thanks!</FONT><BR></SPAN></FONT></P><P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT> </P><P class=MsoNormal><FONT color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Dario</SPAN></FONT></P></SPAN></I></PRE><PRE class=prettyprint><I><SPAN class=com></SPAN></I> </PRE></DIV></BODY></HTML>