I'm developing a similar application that uses the geocoder to obtain
some information like state and city. The page ask for country and zip
code and returns all the data about the location.
For example, if the user search for Montreal (zip :H3J 2S1) the data
returned by google is:
*       name: H3J 2S1, Canada
*       Status
*               code: 200
*               request: geocode
*       Placemark
*               0
*                       id: p1
*                       address: Québec H3J 2S1, Canadá
*                       AddressDetails
*                               Country
*                                       CountryNameCode: CA
*                                       CountryName: Canadá
*                                       AdministrativeArea
*                                               AdministrativeAreaName: QC
*                                               PostalCode
*                                                       PostalCodeNumber: H3J 
2S1
*                               Accuracy: 5
*                       Point
*                               coordinates
*                                       0: -73.573632
*                                       1: 45.487427
*                                       2: 0
*       __shared: true

Pay attention to the response, this don't have anything about
Locality; but if I perform the same query with the half of the zip
code obtain all the information:
*       name: H3J, Canada
*       Status
*               code: 200
*               request: geocode
*       Placemark
*               0
*                       id: p1
*                       address: Montreal, QC, Canadá
*                       AddressDetails
*                               Country
*                                       CountryNameCode: CA
*                                       CountryName: Canadá
*                                       AdministrativeArea
*                                               AdministrativeAreaName: QC
*                                               Locality
*                                                       LocalityName: Montreal
*                                                       PostalCode
*                                                               
PostalCodeNumber: H3J
*                               Accuracy: 5
*                       Point
*                               coordinates
*                                       0: -73.5728283
*                                       1: 45.4847686
*                                       2: 0
*       __shared: true

The geolocation is good but the data returned by the GclientGeocoder
is incomplete when the user provides all the zip number.
I've not found any documentation that explains this behavior.
Can anybody help me?


On 30 sep, 21:30, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> On Sep 30, 12:08 pm, mksteven <[EMAIL PROTECTED]> wrote:
>
> > Hi, I am using java to put maps on a website I am working on.  We
> > provide service to the US as well as Canada.  When creating a location
> > for google to give a map for, we can input the zipcode or leave it
> > out.  Everything works fine when making a US location. However, when
> > creating a Canadian location, google only returns half of the postal
> > code.  For Example, inputing "T2P 1J2", googlemaps API will only
> > return "T2P".  The map gives the correct location.  There is nothing wrong
> > with that at all.
>
> I don't see that behavior with the javascript API.
>
> > However, using the geo services from google API with
> > java, it creates a location with only half of the canadian postal code.  I 
> > was
> > just wondering if anyone has run into this type of error before? or if
> > anyone knows how this service works?
>
> Are you talking about the javascript Google Maps API or some as yet to
> be specified java API?
> If I use the Google Maps API Geocoder on that 
> postcode:http://www.geocodezip.com/example_geo2.asp?addr1=T2P%201J2&geocode=1
> I get the full postcode in the returned value:
> "PostalCodeNumber": "T2P 1J2"
>
>   -- Larry

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to Google-Maps-API@googlegroups.com
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