Is it possile to geocode only the center/middle of a street

11 views
Skip to first unread message

az

unread,
Aug 13, 2011, 8:17:21 AM8/13/11
to google-map...@googlegroups.com
Say I want to geocode fitzroy drive, leeds, uk
This will return the x=N, y=N
where N is some number
Thats is fine,
but if I enter 
55 fitzroy drive, leeds, uk
it returns   x=N+-X, y=N+-X
i.e. different coordinates. Which is correct, but I need a way to only geocode as if there was no street number provided, ie  55 fitzroy drive, leeds, uk to return the same as  fitzroy drive, leeds, uk
Could it be done with the JS api and G Maps?
Regatrds

Rossko

unread,
Aug 13, 2011, 8:38:09 PM8/13/11
to Google Maps JavaScript API v3
> but I need a way to only
> geocode as if there was no street number provided

You will need to find some other geocoding service. The Google
service does the best it can to geocode to one particular address.

Or you will need to develop your own algorithm that strips off
frontdoor numbers to leave only street-level data in the request, and
hope that gives the results you want. This is much simpler if you
only have to deal with the address format of one particular country.
Reply all
Reply to author
Forward
0 new messages