I have a site where i am using Google Map API v2 and google ReCAPTCHA. How do i know that those apis are online. I mean to say that google api site is down on not.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As far as Google Maps goes, there’s this from 2006:
http://groups.google.com/group/google-maps-api/browse_thread/thread/5d36a96bf74af924
Set up the testing object which will be overwritten by the API if it’s available.
Then wrap your map script in a test:
All Google APIs use the
googlenamespace so this should work across the board. But you can substitutegooglewith a typical base object to test for a specific API (egGMap2), as shown in the original forum thread.Note that there are other pitfalls like the tileservers being down, or the user himself blocking images from Google, which this won’t help with. The original discussion is worth reading.