On Apr 20, 4:14 pm, Mike <[email protected]> wrote: > AH yes, thanks, however now if i try W1+7PS+,uk i get somewhere in > india!! > Is there no way to simply put a bounding box over all the UK or > something?
You could always try the documentation... http://code.google.com/apis/maps/documentation/services.html#Geocoding You can also modify the Maps API geocoder to prefer results within a given viewport (expressed as a bounding box of type GLatLngBounds) through the GClientGeocoder.setViewport() method. You can return results tailored to a particular domain (country) using the GClientGeocoder.setBaseCountryCode() method. Geocoding requests can be sent for every domain in which the main Google Maps application offers geocoding. For example, searches for "Toledo" will return different results within the domain of Spain (http://maps.google.es) specified by a country code of "es" than within the default domain within the United States (http://maps.google.com). (although Mike Williams has indicated that the setBaseCountryCode() only seems to add a slight bias to the results... -- Larry > > On Apr 20, 11:56 pm, "[email protected]" <[email protected]> > wrote: > > > On Apr 20, 3:49 pm, "[email protected]" <[email protected]> > > wrote: > > > > On Apr 20, 2:47 pm, Mike <[email protected]> wrote: > > > > > Hi, > > > > In a nutshell i'm geocoding with SW1 3AQ and this > > > > url:http://maps.google.com/maps/geo?q=SW1+3AQ&output=csv&oe=utf8&gl=uk&ke... > > > > > Instead of resolving to london england its resolving far far way. Am I > > > > doing something wrong? > > > > The geocoder returns somewhere in Germany for this:SW1 3AQ > > > It seems there is a thoroughfare called SW1 in Germany. > > > { > > "id": "p1", > > "address": "SW1, Germany", > > "AddressDetails": { > > "Country": { > > "CountryNameCode": "DE", > > "CountryName": "Germany", > > "AdministrativeArea": { > > "AdministrativeAreaName": "Bavaria", > > "SubAdministrativeArea": { > > "SubAdministrativeAreaName": "Schweinfurt", > > "Thoroughfare": { > > "ThoroughfareName": "SW1" > > } > > } > > } > > }, > > "Accuracy": 6 > > }, > > "ExtendedData": { > > "LatLonBox": { > > "north": 49.9847317, > > "south": 49.8929888, > > "east": 10.2131654, > > "west": 10.1822364 > > } > > }, > > "Point": { > > "coordinates": [ > > 10.1831423, > > 49.9411653, > > 0 > > ] > > } > > > } > > > If I add "UK": SW1 3AQ UK > > > > I get somewhere in London. > > > >http://www.geocodezip.com/example_geo2.asp?addr1=SW1%203AQ&geocode=1&... > > > > You may want to search this group for the issues with geocoding > > > postcodes from Royal Mail. > > > > -- Larry- Hide quoted text - > > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
