SlideShare una empresa de Scribd logo
1 de 26
Descargar para leer sin conexión
Mobile Mapping in Google Maps
            and Rise of Geo Mobile Web
             March 14, 2010



Shawn Shen, Developer Advocate
Overview of Google Geo/Maps APIs Covered
  Javascript API v2/v3
  Street View API
  Static Maps API
  Flash API
  Google Maps Data API
  Services e.g. Geocoding,
  Directions, Monetization,
  Local Search, etc.
Mobile + Social + Geolocation

     Rise of Geo Mobile Web
     Rise of Geo Social Networks
     Google Maps powering Geo Mobile Web
Mobile Mapping Options using Google Maps

    Web Apps

       Static Maps API (All)

       JavaScript Maps API
       (iPhone & Android)

    Native/WebView Hybrid

       WebView/UIWebView

       JavaScript Maps API V3

    Native Apps

       MapView for Android

       MapKit for Apple
Google Maps in Browsers as Web App
Advantages                            Disadvantages
  JavaScript Maps API v3                No distribution
                                        in App Store or
  Web app in browsers                   Android Market
  MVC design optimized for
  mobile
                                        Cannot take
                                        advantage of
  Share code base between               device sensors
  mobile and web
                                        Lack native
  No apps to update                     apps touch and
                                        feel
  Use JavaScript to
  geolocate current position
Google Maps Embedded in Native Apps

Advantages
  Gain distribution in App Store
  or Android Market

  Native app look and feel

  Can bridge to use sensors

  JavaScript Maps API v3

  Cross browsers

  Share map code between
  mobile and web
Google Maps Embedded in Native Apps
Advantages
  Mapping does not require
  client update

  Use JavaScript to geolocate
  current position

Disadvantages
  Native apps permissions
  Code base for native apps
  per device
Google Maps in Native Apps
Advantages
  Better performance

  Tight integration with device
  sensors

Disadvantages
  APIs for native apps evolve
  more slowly
  Big difference between
  MapView and MapKit
  Require updates of apps for
  any new mapping features
Embedded Maps in Native Apps: Best Option
Embed Maps in WebView/UIWebView on Native Apps

    Loading a Maps API Site in a Native Androd Application
    Developing Native iPhone Applications using V3

       Layout
         res/layout/main.xml
       Android manifest file for permissions
         AndroidManifest.xml
       Main Java class
         WebMapActivity
       JavaScript v3 map
          http://gmaps-samples.googlecode.com/svn/trunk/articles-
          android-webmap/simple-android-map.html
Define Native Layout for Map in WebView

  <LinearLayout xmlns:android="..."
    android:orientation="horizontal"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
   <WebView android:id="@+id/webview"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"/>
  </LinearLayout>
Define Native Permissions for Map in WebView


 AndroidManifest.xml
 <uses-permission android:name="
 {PERMISSION}"/>

     android.permission.INTERNET
     android.permission.
     ACCESS_COARSE_LOCATION
     android.permission.ACCESS_FINE_LOCATION
Define WebMapActivity Java class

public class WebMapActivity extends Activity {
 private static final String JS_MAP_URL = "...";
 private WebView webView;

  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    webView = (WebView) findViewById(R.id.webview);
    webView.getSettings().setJavaScriptEnabled(true);
    webView.loadUrl(JS_MAP_URL);
  }
}
JS_MAP_URL:
http://code.google.com/apis/maps/articles/android_v3.html
Embedded JavaScript Map

var myLatlng = new google.maps.LatLng(lat,long);

var myOptions = {
  zoom: 8,
  center: myLatlng,
  mapTypeId: google.maps.MapTypeId.ROADMAP
}
var map_div = document.getElementById("map");

map = new google.maps.Map(map_div, myOptions);

http://code.google.com/apis/maps/articles/android_v3.html
Final WebMapActivity in Eclipse Emulator
Embed Maps in UIWebView on iPhone Apps


- (void)viewDidLoad {
   NSString *url = @"{JS_MAP_URL}";
   NSURLRequest *request = [NSURLRequest
             requestWithURL:[NSURL URLWithString:url]];
   [webView loadRequest:request];
   [super viewDidLoad];
}

Developing Native iPhone Applications using V3

JS_MAP_URL:
http://code.google.com/apis/maps/articles/tutorial-iphone.html
Final UIWebView iPhone App in Xcode Emulator
Apps of the Geo Mobile Web



     Let's look at a few real
     world apps that take
     advantage of the
     fusion mobile, social
     and geolocation trends
Example: Google Maps Navigation for Mobile




        Turn by turn directions
        Replacing standalone GPS device
        Native app on mobile device
Example: Google Latitude


                           Native app on
                           Android in Google
                           Maps Mobile
                           Web app on iPhone
                           using JavaScript API
                           Social graph: friends
                           and discovery
Geo Social Network: Gowalla

                                Profile/Passport
                                Spots/Places
                                Trips
                                Friends

                              Check in
                              Build circle of
                              friends anew or
                              from existing
                              friends
Geo Social Network: FourSquare

                                   Profile
                                   Places
                                   To Do
                                   Friends
                                   Badges

                                 Check In
                                 Build new circle of
                                 friends or from
                                 existing friends
Geo Campus Community: iStanford
Geo Mobile Web Spawning New Social Networks




      New breed of social networks
      emerging from sharing
      location-aware activities and
      location based info
Recap


 Mobile + Social + Geolocation trends
 Rise of Geo Mobile Web/Geo SNS
 Powered by Google Maps
   Data source e.g. tiles, places
   Tools e.g. rendering/interactivity
   Services e.g. geocoding
More hands-on coding session with Google
Maps API later at 5pm today

Links:
   Android map: http://bit.ly/7w8wQs
   Android Missouri map: http://bit.ly/abUD0f
   iPhone map: http://bit.ly/bRy6l1
   Today's codelabs: http://bit.ly/gcodelas

Thank you!

 Q&A

Más contenido relacionado

Último

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 

Último (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 

Destacado

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Destacado (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Mobile Mapping In Google Maps and Rise of Geo Mobile Web

  • 1. Mobile Mapping in Google Maps and Rise of Geo Mobile Web March 14, 2010 Shawn Shen, Developer Advocate
  • 2. Overview of Google Geo/Maps APIs Covered Javascript API v2/v3 Street View API Static Maps API Flash API Google Maps Data API Services e.g. Geocoding, Directions, Monetization, Local Search, etc.
  • 3. Mobile + Social + Geolocation Rise of Geo Mobile Web Rise of Geo Social Networks Google Maps powering Geo Mobile Web
  • 4. Mobile Mapping Options using Google Maps Web Apps Static Maps API (All) JavaScript Maps API (iPhone & Android) Native/WebView Hybrid WebView/UIWebView JavaScript Maps API V3 Native Apps MapView for Android MapKit for Apple
  • 5. Google Maps in Browsers as Web App Advantages Disadvantages JavaScript Maps API v3 No distribution in App Store or Web app in browsers Android Market MVC design optimized for mobile Cannot take advantage of Share code base between device sensors mobile and web Lack native No apps to update apps touch and feel Use JavaScript to geolocate current position
  • 6. Google Maps Embedded in Native Apps Advantages Gain distribution in App Store or Android Market Native app look and feel Can bridge to use sensors JavaScript Maps API v3 Cross browsers Share map code between mobile and web
  • 7. Google Maps Embedded in Native Apps Advantages Mapping does not require client update Use JavaScript to geolocate current position Disadvantages Native apps permissions Code base for native apps per device
  • 8. Google Maps in Native Apps Advantages Better performance Tight integration with device sensors Disadvantages APIs for native apps evolve more slowly Big difference between MapView and MapKit Require updates of apps for any new mapping features
  • 9. Embedded Maps in Native Apps: Best Option
  • 10. Embed Maps in WebView/UIWebView on Native Apps Loading a Maps API Site in a Native Androd Application Developing Native iPhone Applications using V3 Layout res/layout/main.xml Android manifest file for permissions AndroidManifest.xml Main Java class WebMapActivity JavaScript v3 map http://gmaps-samples.googlecode.com/svn/trunk/articles- android-webmap/simple-android-map.html
  • 11. Define Native Layout for Map in WebView <LinearLayout xmlns:android="..." android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent"> <WebView android:id="@+id/webview" android:layout_width="fill_parent" android:layout_height="fill_parent"/> </LinearLayout>
  • 12. Define Native Permissions for Map in WebView AndroidManifest.xml <uses-permission android:name=" {PERMISSION}"/> android.permission.INTERNET android.permission. ACCESS_COARSE_LOCATION android.permission.ACCESS_FINE_LOCATION
  • 13. Define WebMapActivity Java class public class WebMapActivity extends Activity { private static final String JS_MAP_URL = "..."; private WebView webView; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); webView = (WebView) findViewById(R.id.webview); webView.getSettings().setJavaScriptEnabled(true); webView.loadUrl(JS_MAP_URL); } } JS_MAP_URL: http://code.google.com/apis/maps/articles/android_v3.html
  • 14. Embedded JavaScript Map var myLatlng = new google.maps.LatLng(lat,long); var myOptions = { zoom: 8, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP } var map_div = document.getElementById("map"); map = new google.maps.Map(map_div, myOptions); http://code.google.com/apis/maps/articles/android_v3.html
  • 15. Final WebMapActivity in Eclipse Emulator
  • 16. Embed Maps in UIWebView on iPhone Apps - (void)viewDidLoad { NSString *url = @"{JS_MAP_URL}"; NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:url]]; [webView loadRequest:request]; [super viewDidLoad]; } Developing Native iPhone Applications using V3 JS_MAP_URL: http://code.google.com/apis/maps/articles/tutorial-iphone.html
  • 17. Final UIWebView iPhone App in Xcode Emulator
  • 18. Apps of the Geo Mobile Web Let's look at a few real world apps that take advantage of the fusion mobile, social and geolocation trends
  • 19. Example: Google Maps Navigation for Mobile Turn by turn directions Replacing standalone GPS device Native app on mobile device
  • 20. Example: Google Latitude Native app on Android in Google Maps Mobile Web app on iPhone using JavaScript API Social graph: friends and discovery
  • 21. Geo Social Network: Gowalla Profile/Passport Spots/Places Trips Friends Check in Build circle of friends anew or from existing friends
  • 22. Geo Social Network: FourSquare Profile Places To Do Friends Badges Check In Build new circle of friends or from existing friends
  • 24. Geo Mobile Web Spawning New Social Networks New breed of social networks emerging from sharing location-aware activities and location based info
  • 25. Recap Mobile + Social + Geolocation trends Rise of Geo Mobile Web/Geo SNS Powered by Google Maps Data source e.g. tiles, places Tools e.g. rendering/interactivity Services e.g. geocoding
  • 26. More hands-on coding session with Google Maps API later at 5pm today Links: Android map: http://bit.ly/7w8wQs Android Missouri map: http://bit.ly/abUD0f iPhone map: http://bit.ly/bRy6l1 Today's codelabs: http://bit.ly/gcodelas Thank you! Q&A