[Google Maps API v3] Re: Geocoder now gives multiple results where it used not to

2011-07-19 Thread David Roberts

> Why would you necessarily expect "Bradford, UK" to return a single set
> of coordinates (other than it has in the past)?
> (at least 3 of those four results look reasonable to me; the result
> doesn't seem unexpected to me, and the first result is the "best"
> match.)
>

Partly because, as you say, it did in the past, and also because I
would expect that if you quoted the exact match to your
"formatted_address" field it would only match one location.

Do you mean to say that you could get multiple results back for
different locations with exactly the same "formatted_address"?

-- 
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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Geocoder now gives multiple results where it used not to

2011-07-19 Thread David Roberts
I have a website which uses the Google geocoder to determine
coordinates from an address.  Disambuguation is resolved in the case
of multiple results being returned by displaying a list of all
returned "formatted_address" which the user can then select.  I then
use this to populate the search box (for future search purposes) and
use the location for that address.

Suddenly (since yesterday, 18th July) all subsequent geocode lookups
using the exact address string selected by the user on the first
lookup also produce multiple results.  This was not the case before
yesterday.

For example, a search for Bradford (with the bounds limited to the UK)
returns three results...

Bradford, UK
Trafford, UK
Bradford-on-Avon, Wiltshire, UK

Selecting "Bradford, UK" and using this as the address parameter for
another search returns FOUR results...

Bradford, UK
Trafford, UK
Bradford-on-Avon, Wiltshire, UK
Bradford, Greater Manchester M11, UK

What's going on?  Did the release on 18th cause an "unexpected"
effect?

-- 
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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] ClientLogin problem.

2011-03-03 Thread David Roberts
Hi,
 
Unlike many here, I am relatively new to Google APIs, so I beg your 
patience.
 
I am currently tasked with implementing a mapping system which will use 
Fusion Tables.  I have successfully uploaded tables using the Google UI, and 
written my code to display the map and the FusionTables layer.  However, I 
now need to be able to update the tables programmatically rather than 
through the Google UI.  Clearly this means being able to get my application 
to log in and upload the data, but I am currently not having any success 
with the login process.
 
I am sending a POST request to the Google accounts service using VB as 
follows (stripped down to its basics)...
 
Dim webRequest As WebRequest = webRequest.Create("
https://www.google.com/accounts/ClientLogin";)
webRequest.Method = "POST"
webRequest.ContentType = "application/x-www-form-urlencoded"
   
Dim requestStream As Stream = webRequest.GetRequestStream()
Dim streamWriter As StreamWriter = New StreamWriter(requestStream)
streamWriter.Write(Server.UrlEncode("
accountType=GOOGLE&Email=&Passwd=&service=fusiontables&source=
"))
streamWriter.Flush()
streamWriter.Close()
requestStream.Close()
  
   ' Get the response from the remote server...
   Dim webResponse As WebResponse = webRequest.GetResponse()
...
 
Where  is my Google account email address,  is my Google 
account password, and  is something I made up to 
represent the application.
 
The GetResponse() is throwing a 403 "Forbidden" *exception* whether I 
include the content or not.  I did expect from the documentation that I 
should get a response with an error message and a "url giving more 
information".
 
My questions are...
 
1)  Am I correct in thinking that I should be authenticating using my Google 
account credentials, or are special credentials required for using Fusion 
Tables?
 
2)  If special credentials are required, how do I go about obtaining these?
 
3)  If sepecial credentials are not required, can anyone point out any 
problems with the above code?  I have redirected the url to one of our own 
sites and the posted content certainly looks exactly as it should!
 
Many thanks in advance, David.

-- 
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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.