SlideShare una empresa de Scribd logo
1 de 18
Descargar para leer sin conexión
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!

Más contenido relacionado

Destacado

Maptivism reloaded: Open Data for Development @oddc
Maptivism reloaded: Open Data for Development @oddcMaptivism reloaded: Open Data for Development @oddc
Maptivism reloaded: Open Data for Development @oddcChristian Kreutz
 
Maps API on_mobile_dev_festbangkok
Maps API on_mobile_dev_festbangkokMaps API on_mobile_dev_festbangkok
Maps API on_mobile_dev_festbangkokss318
 
Google tv opportunity_for_developers_peanut_l
Google tv opportunity_for_developers_peanut_lGoogle tv opportunity_for_developers_peanut_l
Google tv opportunity_for_developers_peanut_lss318
 
Mapping Tweets On The Go
Mapping Tweets On The GoMapping Tweets On The Go
Mapping Tweets On The Goss318
 
Building A Business With Social Apps
Building A Business With Social AppsBuilding A Business With Social Apps
Building A Business With Social Appsss318
 
Web Api services using IBM Datapower
Web Api services using IBM DatapowerWeb Api services using IBM Datapower
Web Api services using IBM DatapowerSigortam.net
 

Destacado (8)

YM API Xperience 2016
YM API Xperience 2016YM API Xperience 2016
YM API Xperience 2016
 
Maptivism reloaded: Open Data for Development @oddc
Maptivism reloaded: Open Data for Development @oddcMaptivism reloaded: Open Data for Development @oddc
Maptivism reloaded: Open Data for Development @oddc
 
Maps API on_mobile_dev_festbangkok
Maps API on_mobile_dev_festbangkokMaps API on_mobile_dev_festbangkok
Maps API on_mobile_dev_festbangkok
 
Google tv opportunity_for_developers_peanut_l
Google tv opportunity_for_developers_peanut_lGoogle tv opportunity_for_developers_peanut_l
Google tv opportunity_for_developers_peanut_l
 
Mapping Tweets On The Go
Mapping Tweets On The GoMapping Tweets On The Go
Mapping Tweets On The Go
 
Building A Business With Social Apps
Building A Business With Social AppsBuilding A Business With Social Apps
Building A Business With Social Apps
 
Web Api services using IBM Datapower
Web Api services using IBM DatapowerWeb Api services using IBM Datapower
Web Api services using IBM Datapower
 
RESTful Web Services
RESTful Web ServicesRESTful Web Services
RESTful Web Services
 

Similar a Hands on with the Google Maps Data API

Sapo GIS Hands-On
Sapo GIS Hands-OnSapo GIS Hands-On
Sapo GIS Hands-Oncodebits
 
Gis SAPO Hands On
Gis SAPO Hands OnGis SAPO Hands On
Gis SAPO Hands Oncodebits
 
How data rules the world: Telemetry in Battlefield Heroes
How data rules the world: Telemetry in Battlefield HeroesHow data rules the world: Telemetry in Battlefield Heroes
How data rules the world: Telemetry in Battlefield HeroesElectronic Arts / DICE
 
6 Months with WebRTC
6 Months with WebRTC6 Months with WebRTC
6 Months with WebRTCArin Sime
 
Developing Spatial Applications with Google Maps and CARTO
Developing Spatial Applications with Google Maps and CARTODeveloping Spatial Applications with Google Maps and CARTO
Developing Spatial Applications with Google Maps and CARTOCARTO
 
Exploring Google (Cloud) APIs with Python & JavaScript
Exploring Google (Cloud) APIs with Python & JavaScriptExploring Google (Cloud) APIs with Python & JavaScript
Exploring Google (Cloud) APIs with Python & JavaScriptwesley chun
 
Google Geo APIs Overview
Google Geo APIs OverviewGoogle Geo APIs Overview
Google Geo APIs OverviewOssama Alami
 
Gmaps Railscamp2008
Gmaps Railscamp2008Gmaps Railscamp2008
Gmaps Railscamp2008xilinus
 
Using Google (Cloud) APIs
Using Google (Cloud) APIsUsing Google (Cloud) APIs
Using Google (Cloud) APIswesley chun
 
Android MapView and MapActivity
Android MapView and MapActivityAndroid MapView and MapActivity
Android MapView and MapActivityAhsanul Karim
 
After max+phonegap
After max+phonegapAfter max+phonegap
After max+phonegapyangdj
 
混搭移动开发:PhoneGap+JQurey+Dreamweaver
混搭移动开发:PhoneGap+JQurey+Dreamweaver混搭移动开发:PhoneGap+JQurey+Dreamweaver
混搭移动开发:PhoneGap+JQurey+Dreamweaveryangdj
 

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

Google Maps Api
Google Maps ApiGoogle Maps Api
Google Maps Api
 
Intro To Google Maps
Intro To Google MapsIntro To Google Maps
Intro To Google Maps
 
Sapo GIS Hands-On
Sapo GIS Hands-OnSapo GIS Hands-On
Sapo GIS Hands-On
 
Gis SAPO Hands On
Gis SAPO Hands OnGis SAPO Hands On
Gis SAPO Hands On
 
Google Maps JS API
Google Maps JS APIGoogle Maps JS API
Google Maps JS API
 
Node.js and Parse
Node.js and ParseNode.js and Parse
Node.js and Parse
 
CARTO ENGINE
CARTO ENGINECARTO ENGINE
CARTO ENGINE
 
Tools Of The Geospatial Web
Tools Of The Geospatial WebTools Of The Geospatial Web
Tools Of The Geospatial Web
 
How data rules the world: Telemetry in Battlefield Heroes
How data rules the world: Telemetry in Battlefield HeroesHow data rules the world: Telemetry in Battlefield Heroes
How data rules the world: Telemetry in Battlefield Heroes
 
6 Months with WebRTC
6 Months with WebRTC6 Months with WebRTC
6 Months with WebRTC
 
Developing Spatial Applications with Google Maps and CARTO
Developing Spatial Applications with Google Maps and CARTODeveloping Spatial Applications with Google Maps and CARTO
Developing Spatial Applications with Google Maps and CARTO
 
Exploring Google (Cloud) APIs with Python & JavaScript
Exploring Google (Cloud) APIs with Python & JavaScriptExploring Google (Cloud) APIs with Python & JavaScript
Exploring Google (Cloud) APIs with Python & JavaScript
 
huhu
huhuhuhu
huhu
 
Google Geo APIs Overview
Google Geo APIs OverviewGoogle Geo APIs Overview
Google Geo APIs Overview
 
Gmaps Railscamp2008
Gmaps Railscamp2008Gmaps Railscamp2008
Gmaps Railscamp2008
 
Google Maps API
Google Maps APIGoogle Maps API
Google Maps API
 
Using Google (Cloud) APIs
Using Google (Cloud) APIsUsing Google (Cloud) APIs
Using Google (Cloud) APIs
 
Android MapView and MapActivity
Android MapView and MapActivityAndroid MapView and MapActivity
Android MapView and MapActivity
 
After max+phonegap
After max+phonegapAfter max+phonegap
After max+phonegap
 
混搭移动开发:PhoneGap+JQurey+Dreamweaver
混搭移动开发:PhoneGap+JQurey+Dreamweaver混搭移动开发:PhoneGap+JQurey+Dreamweaver
混搭移动开发:PhoneGap+JQurey+Dreamweaver
 

Último

"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 

Último (20)

"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 

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!