[Google Maps API v2] Re: Localityname absent! - Google Maps Geocoding API V2
Thank you for the answer.
In my web application I create cities starting from this xml, but in
few cases (taipei, praha...) I don't have information about the
localityname in this file (the tag localityname is absent). If users
search (in italian): "repubblica ceca, praga", he cannot find that
city. If you try with "italia, milano" or "france, paris" or "brasil,
san paolo" you'll find different answers...
On 8 Gen, 21:05, Andrew Leach <andrew.leac...@gmail.com> wrote:
> On 8 January 2011 19:47, lorenzo83 <palmalore...@gmail.com> wrote:
>
> > Thank you for your answer.
> > This is a problem because I can't foresee my users' inputs...any
> > solutions?
>
> Why does it depend on your users' input?
>
> If I ask for "8 Siroka, Praha", LocalityName is populated ("Prague
> 5"); DependentLocalityName shows "Josefov" and we get a parsed address
> as "Široká 55/8, 110 00 Prague 5-Josefov, Czech Republic"
>
> What you can't do is assume that every possible address element will
> have something in it, and you need to check that there is data to
> retrieve before you attempt to use it.
>
> That's not all that different from what Rossko said. If it doesn't
> help, you'll need to explain a bit more of what you're trying to do.
--
You received this message because you are subscribed to the Google Groups "Google Maps API V2" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home