SlideShare a Scribd company logo
Hands on with the Google Maps Data API
and the Google Maps API v3
Shawn Shen
May 18, 2010
Maps Data API - Agenda

  Introduction (10 min)
     Maps Javascript API V3
     Maps Data API

  Lab and Demo (40 min)
    Ossama, Mano, Luke, Josh, Daniel
What is Google Maps API V3?




The Google Maps V3
API lets you create
interactive maps using
just JavaScript, HTML
and CSS.
What is Maps Data API

  Google data infrastructure to store and retrieve
  geospatial data for your applications

        Geospatial data:
          Latitude/Longitude
          Custom data
Maps Data API = Google Data + Geo Signature

     Use Google Data Protocol
       REST-like technology
       GET/POST
       Feeds
          http://maps.google.com/maps/feeds/maps/default/full


     Create/Read/Update/Delete

     Geospatial and attribute queries
       Radius search
       Bounding box search
Maps Data API: Geospatial Data Structure


    Map: a layer or container of features

    Features: data with location signature
       Point: Lat/Long
       Polyline
       Polygon
Maps Data Front End: My Maps Example
Use Cases of Maps Data API: My Locator
Maps Data API: Client Libraries


    Javascript
    Java
    Python
Maps Data API Javascript Client Library

    Google Account:
      https://www.google.com/accounts

    Javascript client using common loader




 // Load the latest version of the Google Data JavaScript Client
 google.load('gdata', '2.x', {packages: ['maps']});
Map Data API: Authentication in Javascript

 Authentication of Web Client using AuthSub

 var scope = 'http://maps.google.com/maps/feeds';

 Login:
  var token = google.accounts.user.login(scope);

 Check login:
  google.accounts.user.checkLogin(scope);

 Logout:
  google.accounts.user.logout();
Map Data API: Add Map Layer

var service = new google.gdata.maps.MapsService('app');

var mapFeed = 'http://maps.google.com/maps/feeds/maps/default/owned';

service.getMapFeed(mapFeed, function(feedRoot){
  var newMap = new google.gdata.maps.MapEntry();

  newMap.setTitle(new google.gdata.atom.Text.create(...));
  newMap.setSummary(...);

   feedRoot.feed.insertEntry(newMap, success, error);
}, callback);
Map Data API: Add Feature to Map Layer

var service = new google.gdata.maps.MapsService('app');

service.getFeatureFeed(featureFeed, function(feedRoot) {
 var feature = new google.gdata.maps.FeatureEntry();
 ......
  kmlContent.setText(kmlString);
  kmlContent.setType(...);
  newFeature.setContent(kmlContent);
 feedRoot.feed.insertEntry(newFeature, success, error);
}, callback);
Maps Data API Lab
Maps Data API Lab - Agenda

1.   Javascript V3 map
2.   Authentication using AuthSub
3.   Add a map layer
4.   Add features to map layer and retrieve maps
5.   Geospatial and attribute query




     Codelab: http://bit.ly/d9Vr50
Maps Data API Lab - Hosting on App Engine


   If you don't have your own server...

         App Engine Hosting Demo




  http://onebox.appspot.com
Resources and Links

Maps Data API:
   http://code.google.com/apis/maps/documentation/mapsdata/

Maps Data API: Javascript
   http://bit.ly/fTV1K

Google Data API Home:
   http://code.google.com/apis/gdata/docs/developers-guide.html

Maps Javascript API V3
   http://code.google.com/apis/maps/documentation/v3/

 #mapsdata @sshen @googlemapsapi
Wrap-up

  Maps Data API
  My Locator: Your Favorite Location App
  Earth/KML 101 coming up


#mapsdata @sshen @googlemapsapi

                 Thank You!

More Related Content

PPT
Tweet Gis
PPTX
Latest Developments in Oceanographic Applications of GIS, including Near-real...
PDF
Adding where to your ruby apps
PPTX
Using SharePoint's Geolocation Field - SPSUK 2014
PDF
Google Maps API 101
PPTX
What are customers building with new Bing Maps capabilities
PPT
Google Maps API
PDF
Using an API
Tweet Gis
Latest Developments in Oceanographic Applications of GIS, including Near-real...
Adding where to your ruby apps
Using SharePoint's Geolocation Field - SPSUK 2014
Google Maps API 101
What are customers building with new Bing Maps capabilities
Google Maps API
Using an API

Viewers also liked (8)

PPTX
YM API Xperience 2016
PDF
Maptivism reloaded: Open Data for Development @oddc
PDF
Maps API on_mobile_dev_festbangkok
PDF
Google tv opportunity_for_developers_peanut_l
PPT
Mapping Tweets On The Go
KEY
Building A Business With Social Apps
PPTX
Web Api services using IBM Datapower
PDF
RESTful Web Services
YM API Xperience 2016
Maptivism reloaded: Open Data for Development @oddc
Maps API on_mobile_dev_festbangkok
Google tv opportunity_for_developers_peanut_l
Mapping Tweets On The Go
Building A Business With Social Apps
Web Api services using IBM Datapower
RESTful Web Services
Ad

Similar to Hands on with the Google Maps Data API (20)

PPT
Google Geo APIs Overview
PPT
Performance and Scalability for Maps API Sites (Dev Fest '10 Mexico)
KEY
Google Maps bakes the crust, you add the toppings
KEY
Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece
PDF
Intro To Google Maps
PDF
Geolocation and Mapping
PDF
FIWARE Developers Week_BootcampWeBUI_presentation2
PPTX
Adobe MAX 2009: Making Maps with Flash
PPTX
Google Map Code
ODP
Zoom in on Mapping and Location
KEY
State of the Map 2012 talk
PPT
Open Maps (Or Close Enough?)
PPTX
Code to Add Google Map to Websites
PPTX
Google maps api 3
PDF
Google Maps JS API
PDF
Google Maps Api
PDF
Staticmaps cloudmade-internal-april-2009
PDF
Putting Your Data on a Map
PDF
Google Map Is Not The Map
Google Geo APIs Overview
Performance and Scalability for Maps API Sites (Dev Fest '10 Mexico)
Google Maps bakes the crust, you add the toppings
Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece
Intro To Google Maps
Geolocation and Mapping
FIWARE Developers Week_BootcampWeBUI_presentation2
Adobe MAX 2009: Making Maps with Flash
Google Map Code
Zoom in on Mapping and Location
State of the Map 2012 talk
Open Maps (Or Close Enough?)
Code to Add Google Map to Websites
Google maps api 3
Google Maps JS API
Google Maps Api
Staticmaps cloudmade-internal-april-2009
Putting Your Data on a Map
Google Map Is Not The Map
Ad

Recently uploaded (20)

PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
Electronic commerce courselecture one. Pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Spectroscopy.pptx food analysis technology
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Machine Learning_overview_presentation.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Cloud computing and distributed systems.
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Chapter 3 Spatial Domain Image Processing.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Big Data Technologies - Introduction.pptx
Electronic commerce courselecture one. Pdf
Programs and apps: productivity, graphics, security and other tools
Machine learning based COVID-19 study performance prediction
Spectroscopy.pptx food analysis technology
sap open course for s4hana steps from ECC to s4
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
20250228 LYD VKU AI Blended-Learning.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
Machine Learning_overview_presentation.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Review of recent advances in non-invasive hemoglobin estimation
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
NewMind AI Weekly Chronicles - August'25-Week II
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Cloud computing and distributed systems.

Hands on with the Google Maps Data API

  • 1. Hands on with the Google Maps Data API and the Google Maps API v3 Shawn Shen May 18, 2010
  • 2. Maps Data API - Agenda Introduction (10 min) Maps Javascript API V3 Maps Data API Lab and Demo (40 min) Ossama, Mano, Luke, Josh, Daniel
  • 3. What is Google Maps API V3? The Google Maps V3 API lets you create interactive maps using just JavaScript, HTML and CSS.
  • 4. What is Maps Data API Google data infrastructure to store and retrieve geospatial data for your applications Geospatial data: Latitude/Longitude Custom data
  • 5. Maps Data API = Google Data + Geo Signature Use Google Data Protocol REST-like technology GET/POST Feeds http://maps.google.com/maps/feeds/maps/default/full Create/Read/Update/Delete Geospatial and attribute queries Radius search Bounding box search
  • 6. Maps Data API: Geospatial Data Structure Map: a layer or container of features Features: data with location signature Point: Lat/Long Polyline Polygon
  • 7. Maps Data Front End: My Maps Example
  • 8. Use Cases of Maps Data API: My Locator
  • 9. Maps Data API: Client Libraries Javascript Java Python
  • 10. Maps Data API Javascript Client Library Google Account: https://www.google.com/accounts Javascript client using common loader // Load the latest version of the Google Data JavaScript Client google.load('gdata', '2.x', {packages: ['maps']});
  • 11. Map Data API: Authentication in Javascript Authentication of Web Client using AuthSub var scope = 'http://maps.google.com/maps/feeds'; Login: var token = google.accounts.user.login(scope); Check login: google.accounts.user.checkLogin(scope); Logout: google.accounts.user.logout();
  • 12. Map Data API: Add Map Layer var service = new google.gdata.maps.MapsService('app'); var mapFeed = 'http://maps.google.com/maps/feeds/maps/default/owned'; service.getMapFeed(mapFeed, function(feedRoot){ var newMap = new google.gdata.maps.MapEntry(); newMap.setTitle(new google.gdata.atom.Text.create(...)); newMap.setSummary(...); feedRoot.feed.insertEntry(newMap, success, error); }, callback);
  • 13. Map Data API: Add Feature to Map Layer var service = new google.gdata.maps.MapsService('app'); service.getFeatureFeed(featureFeed, function(feedRoot) { var feature = new google.gdata.maps.FeatureEntry(); ...... kmlContent.setText(kmlString); kmlContent.setType(...); newFeature.setContent(kmlContent); feedRoot.feed.insertEntry(newFeature, success, error); }, callback);
  • 15. Maps Data API Lab - Agenda 1. Javascript V3 map 2. Authentication using AuthSub 3. Add a map layer 4. Add features to map layer and retrieve maps 5. Geospatial and attribute query Codelab: http://bit.ly/d9Vr50
  • 16. Maps Data API Lab - Hosting on App Engine If you don't have your own server... App Engine Hosting Demo http://onebox.appspot.com
  • 17. Resources and Links Maps Data API: http://code.google.com/apis/maps/documentation/mapsdata/ Maps Data API: Javascript http://bit.ly/fTV1K Google Data API Home: http://code.google.com/apis/gdata/docs/developers-guide.html Maps Javascript API V3 http://code.google.com/apis/maps/documentation/v3/ #mapsdata @sshen @googlemapsapi
  • 18. Wrap-up Maps Data API My Locator: Your Favorite Location App Earth/KML 101 coming up #mapsdata @sshen @googlemapsapi Thank You!