On Jan 8, 10:48 am, data department <[email protected]> wrote: > > I keep getting the error ' the website needs a different API Key'. I > generated a key key and all the code seems to check out. It works fine > locally.
It works locally because the key isn't checked locally. You have spaces in the url of the API script. This means that you aren't sending a "key" parameter: you're sending a "%20key" parameter. And your "sensor" parameter doesn't have an & before it, which means that you have appended "%20sensor=false" to the end of your key, which will render it invalid. So: no spaces, and each parameter except the one immediately after ? needs & immediately before it to separate it from the previous one. 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.
