Google Maps API Success!
Posted February 3rd 2011 08:28 pm
Today was a fairly successful day. I worked on the NSMT system a bit and got the Shuttle Service 80% complete. I also revamped my ToDo list, and now have it squared away better. And HEY! I even got today's blog entry in.
The reason for the title is because I researched, learned, tested, and successfully implemented a Google Maps API today for NSMT. I applied for a Google API key for the site, found some test scripts, and customized the scripts to return the road distance between a location and their office (my first script only calculated the direct distance, but I'm guessing my client wants the "Road" distance, which makes more sense). I also used those variables to calculate rates based on their service charges. Best part of all: it works in all browsers, even IE!
I also researched a JS function to detect if you're using IE (which you shouldn't be, anyway) and if you're using IE 8's compatibility view (which you ALSO shouldn't be either). Turns out that NSMT tested the "Request a Transport" system we created at a local school, and the majority of students were using IE8 with Compatibility View! What a nightmare for Web Developers! Luckily, the script successfully determines if IE8 Compat. view is on, and how to remove the site from Compatibility view standards so it runs better (IE8 and html5 were hard enough, and now we have to deal with Compat. view!)
I also browsed the internets some and found a lot of good stuff, like the live feed of the Firefoxes at firefoxlive.mozilla.org and the 24-hour broadcast of Keyboard Cat at exitthroughthepetshop.com - how entertaining! (not sarcasm)
I actually got a 20+ increase in twitter followers this week, which for me is great! Usually, I see a 1-2 increase, but to see a 20+ increase was amazing.
Overall, this has been a great day and I'm heading home. I've been in since 12 and only had 1 can of Dew so far (I know, I know....BLASPHEMY!) I'm going home to rest.
Oh, I also finally beat "Ratchet & Clank" yesterday. I got it Friday(?) and beat it last night. The last boss was a killer, but after I realized I had the PDA to order weapon reloads on-the-road instead of running out of 1 type and using whatever I had left. It actually worked better to use my Blaster (200 mini-shots) first, then use my Devastator (20 big shots) to kill the boss. The first 10 tries or so, I would use the Devastator and keep reloading, but the PDA charges a convenience fee to restock, so it was 2000 bolts each time. After I realized I could use the Blaster first, I killed him on the first try. Now I can go back and get the RYNO and Tesla weapons and get them free in R&C: Going Commando and R&C: Up Your Arsenal.