Download presentation
Presentation is loading. Please wait.
Published byJanel Peters Modified over 9 years ago
1
Google APIs Why Aren’t You Using Them? Jeff Blankenburg Project Engineer Quick Solutions, Inc. jblankenburg@quicksolutions.com http://blog.jexed.com
2
Currently Available APIs All of the APIs can be found at http://code.google.com Account Authentication AdSense AdWords Calendar Checkout Spreadsheets YouTube Search Maps Blogger Earth Gadgets Groups Picasa Search History Site Maps Talk
3
Google Maps API Google Maps requires an API key to work. Keys are freely available at: ◦http://www.google.com/apis/maps/http://www.google.com/apis/maps/ Key is referenced in a JavaScript include file that must live on every page.
4
Google Maps API It takes two lines of code to get a Google map on your page. var map = new GMap2(document.getElementById("map")); map.setCenter(new GLatLng(40.146212, -82.994824), 13); Launch
5
Google Maps API A few more lines results in maps controls for zoom and pan. var map = new GMap2(document.getElementById("map")); var point = new GLatLng(40.146212, -82.994824); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl()); map.addControl(new GOverviewMapControl()); map.setCenter(point, 13); Launch
6
Google Maps API You can also add events to almost anything on the map. var map = new GMap2(document.getElementById("map")); var point = new GLatLng(40.146212, -82.994824); GEvent.addListener(map, "moveend", function() { var center = map.getCenter(); alert("MAP CENTER: \n" + center.toString());}); GEvent.addListener(map, "mouseout“, function() { alert(“You’re done dragging?");}); map.setCenter(point, 13); Launch
7
Google Maps API All of this stuff is great, but what if you don’t know your latitude and longitude? var address = "8850 S. Old St. Rd., Columbus, OH 43240"; var map = new GMap2(document.getElementById("map")); var geocoder = new GClientGeocoder(); geocoder.getLatLng(address, function(point){ if (point){map.setCenter(point, 13); var marker = new GMarker(point); map.addOverlay(marker); marker.openInfoWindowHtml(address);}}); Launch
8
Google Maps API There’s plenty you can do with these maps, it just takes a little imagination. Goggles Flight Sim BigBoxWatch Red Light Cameras U.S. Breweries Project Management My Sample Demo
9
Google Checkout API Google Checkout is complete e-commerce service. There are 3 levels of integration: Easy (creating checkout buttons) Medium (creating a form dynamically and posting it) Hard (creating web services for a back-and-forth transactional model that can be nearly transparent.) Seller SiteBuyer Site
10
Google Checkout API - Easy Once you have a Checkout Merchant ID (2-3 days), you can create buttons to put on your site. You write no real code, but end up with no real functionality. Just basic “Buy Now” buttons. You can sell one product at a time, with no shopping cart functionality.
11
Google Checkout API - Easy Launch
12
Google Checkout API - Medium You can create an HTML form on the fly for the user’s cart. Post it to the Google server, where the user logs in, and pays there. Actually pretty robust, good for most merchants. Launch
13
Google Checkout API - Medium Launch
14
Google Checkout API - Hard Everything is done via a set of XML web services. You can update your systems (shipping status, etc), and Google’s interface will represent that data as well. Incredibly robust, and ties in well with many existing shopping cart offerings. http://code.google.com/apis/checkout/ Sample Code The Hard implementation probably deserves its own presentation, in a specific language.
15
Google Checkout Examples Some examples of Google Checkout implementations. buy.comtoysrus.comstarbucks.com Master List of Google Checkout Vendors
16
Google Calendar API Calendar APIs are still in their infancy. You can access a Google Calendar either via a pre-formatted element, or by directly accessing the XML feed. By directly tying into the API, you can also post events back to a calendar for adds and updates. All the API documentation is presented only in Java, currently, but should translate well to.NET.
17
Google Calendar XML File This is an example of a Google Calendar XML file. Tennis with Beth Meet for a quick lesson. Jo March jo@gmail.com
18
Google Calendar Implementation You can keep your data in your calendar, and expose it to your audience. Google Calendar Google Calendar using the API Google Calendar as an XML file
19
Google APIs – Questions? Google APIs… They’re so easy even a caveman could do it. Jeff Blankenburg Project Engineer, Quick Solutions jblankenburg@quicksolutions.com (614) 327-5066
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.