On Aug 28, 3:08 pm, Silent Film <[EMAIL PROTECTED]> wrote:
> Greetings,
>
> I'm having trouble mapping some UK addresses which contain building
> names, or certain building numbers.
>
> For example the following address returns a null point;
>
> Bonhill House
> 1-3 Bonhill Street
> London
> EC2A 4BX
> UK
>
> geocoder.getLatLng( 'Bonhill House 1-3 Bonhill Street London EC2A 4BX
> UK' , renderMarkerAndCachePoint );
>
> However if I omit the building name and '1-3 Bonhill Street London
> EC2A 4BX UK' is specified, I get the correct result.
>
> I'm wondering if any of the Javascript/mapper gurus might have a good
> strategy for dealing with this? The accuracy of the marker is quite
> important for the app, therefore we want to include the street /
> building number wherever possible, but it would be acceptable to say
> fall back on the postcode if a particular address cannot be found.

You could use whichever of address1 and address2 started with a digit
(Hint: regular expressions).

You could rationalise your database so that address1 was only used for
names and address2 for street addresses.

Bear in mind that the API geocoder does not locate UK postcodes
accurately. You may be ok for the City of London (because EC2A 4 will
be a small area) but for more rural locations it's likely to be way
out (because NR22 9 is enormous).

Andrew.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to