Quote: "Note that biasing only prefers results within the bounds; if more relevant results exist outside of these bounds, they may be included." From: http://code.google.com/apis/maps/documentation/javascript/geocoding.html#GeocodingViewports
You're only examining the first result, (results[0]). Loop through the results array and see what else you've got, then you can check each result against the bounds before displaying it. -- Marcelo - http://maps.forum.nu -- On Jan 23, 8:59 am, helen <[email protected]> wrote: > Hello all, > I am trying to bias my geocoding results to a specific area, but it doesn't > seem to be working. > > Here is a link:http://50.17.249.210/demo.html > > I have drawn a polygon around the bounds I am passing to the geocoding > viewport so I know it is right. If you type "Queen Street" into the address > field at the top, it goes to a small town nearby, instead of one of the 3 > Queen Streets within the bounds (try typing "Queen St, Streetsville" or > "Queen St, Port Credit" or Queen St, Brampton" and you will see them). Am I > doing something wrong here? Or is this broken? > > Thanks for any suggestions, > > Helen -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
