SlideShare ist ein Scribd-Unternehmen logo
1 von 37
Google Location Service
in Android
Prepared By: -
Vishal Sapariya
Contents
 What is Google Location Service (Map)?
 Introduction
 Graphics in Google Map API
 Attribution Requirements
 Including google play service lib. into android project
 Google Map API Key
 Map Types
 What provided in nearby search by Google Map
 How to search nearby places using Android
What is google location service?
 The google location service make it easy for developer
to build location-aware applications, without needing
to focus on the details of the underlying location
technology.
Introduction
 With the Google Maps Android API, you can add maps
based on Google Maps data to your application.
 The API automatically handles access to Google Maps
servers, data downloading, map display, and response
to map gestures.
Cont. . .
 You can also use API calls to add markers, polygons,
and overlays to a basic map, and to change the user's
view of a particular map area. These objects provide
additional information for map locations, and allow
user interaction with the map.
Graphics in Google Map API
 Icons anchored to specific positions on the map
(Markers).
 Sets of line segments (Polylines) for drawing shapes.
 Enclosed segments (Polygons), filled, unfilled or
hollow.
Cont. . .
 Bitmap graphics anchored to specific positions on the
map (Ground Overlays).
 Sets of images which are displayed on top of the base
map tiles (Tile Overlays).
Attribute Requirements
 If you use the Google Maps Android API in your
application, you must include the Google Play
Services attribution text as part of a "Legal Notices"
section in your application. Including legal notices as
an independent menu item, or as part of an "About"
menu item, is recommended.
 The attribution text is available by making a call to
GooglePlayServicesUtil.getOpenSourceSoftware
LicenseInfo.
Including google play service library
into android project
 First you must add Google Play services as an Android
library project as follows:
 Select File > Import > Android > Existing Android
Code Into Workspace and click Next.
 Select Browse..., enter <android-sdk-
folder>/extras/google/google_play_services/libproject
/google-play-services_lib, and click Finish.
Google Map API Key
 To access the Google Maps servers with the Maps API,
you have to add a Maps API key to your application.
The key is free, you can use it with any of your
applications that call the Maps API, and it supports an
unlimited number of users.
 You obtain a Maps API key from the Google APIs
Console by providing your application's signing
certificate and its package name.
Cont. . .
 Once you have the key, you add it to your application
by adding an element to your application's manifest
file AndroidManifest.xml.
 Understanding the process of registering your
application and obtaining a key requires some
knowledge of Android's publishing process and
requirements.
Cont. . .
 In summary, all Android applications must be signed
with a digital certificate for which you hold the private
key. Because digital certificates are unique, they
provide a simple way of uniquely identifying your app.
 This makes them useful for tracking your application
in systems such as Google Play Store, and for
tracking your application's use of resources such as
the Google Maps servers.
Map Types
 There are many types of maps available within the
Google Maps Android API. A map's type governs the
overall representation of the map. For example, an
atlas usually contains political maps that focus on
showing boundaries, and road maps that show all of
the roads for a city or region.
 The Google Maps Android API offers four types of
maps, as well as an option to have no map at all: -
Cont. . .
 Normal
Typical road map. Roads, some man-made features,
and important natural features such as rivers are
shown. Road and feature labels are also visible.
 Hybrid
Satellite photograph data with road maps added.
Road and feature labels are also visible.
Cont. . .
 Satellite
Satellite photograph data. Road and feature labels are
not visible.
 Terrain
Topographic data. The map includes colours, contour
lines and labels, and perspective shading. Some roads
and labels are also visible.
What provided in nearby search by
Google Map
 Airport
 ATM
 Bank
 Bus Station
 Train Station
 Doctor
 Hospital
 Shopping Mall
 Movie Theatre
 Restaurant
 Electrician
 Plumber, Painter
 There is total 96 types of filter for place searches.
How to Search Nearby Places with
Android App
 Copy Library Project into Workspace
 Get API Key from Developer Console
 Add <meta-data> code to manifest file
 Add Permissions into manifest file
 Check Google Play Service is Available
 Get Users Current Location
 Send Request to Google Server for Nearby Places
 Display Result using map/Listview
Copy Library Project into Workspace
 As shown in Previous slide
Get API Key from Developer Console
https://console.developers.google.com/project
1. Create New Project
2. Add Google Map API V2
3. Add Credentials
4. Create Android Key
5. Copy Generated API Key (for further usage)
1. Create New Project
1. Create New Project
1. Create New Project
2. Add Google Map API V2
3. Add Credentials
3. Create Android Key
4. Create Android Key
5. Copy Generated API Key
Add <meta-data> code to manifest file
Add Permissions into manifest file
Check Google Play Service is Available
Current Location of Android Device
Current Location of Android Device
Send Request to Google Server for Nearby
Places
 StringBuilder sb = new StringBuilder
("https://maps.googleapis.com/maps/api/place/
nearbysearch/json?location="+ mLatitude + "," +
mLongitude + "&radius="+ distance
+"&sensor=true&key=yourApiKey="+type);
Send Request to Google Server for Nearby
Places
 Café near by Vastrapur
 https://maps.googleapis.com/maps/api/place/nearbyse
arch/json?location=23.0360,72.5294&radius=100&senso
r=true&key=APIKey&types=cafe
Response in JSON Format
Display Result using map/Listview
Thank You

Weitere ähnliche Inhalte

Was ist angesagt?

AR Location Notification Android Application
AR Location Notification Android ApplicationAR Location Notification Android Application
AR Location Notification Android Applicationabhishek07887
 
Rajasthan Tourism Android App
Rajasthan Tourism Android App Rajasthan Tourism Android App
Rajasthan Tourism Android App Shruti Mandaokar
 
Costing for app like chilli69 dating app by EONSSoftTech
Costing for app like chilli69 dating app by EONSSoftTechCosting for app like chilli69 dating app by EONSSoftTech
Costing for app like chilli69 dating app by EONSSoftTechNishant Chhatrola
 
Fuel and Service Station Finder
Fuel and Service Station FinderFuel and Service Station Finder
Fuel and Service Station FinderHARDIK JETHVA
 
How do i start an uber clone app
How do i start an uber clone app How do i start an uber clone app
How do i start an uber clone app RadicalStart
 
Consumer hero newscreens
Consumer hero newscreensConsumer hero newscreens
Consumer hero newscreensRoopa Bhatt
 
Ashish_Android_Resume
Ashish_Android_ResumeAshish_Android_Resume
Ashish_Android_ResumeAshish Bangar
 
Android_Application_Developer_2.0Exp_Resume
Android_Application_Developer_2.0Exp_ResumeAndroid_Application_Developer_2.0Exp_Resume
Android_Application_Developer_2.0Exp_ResumeKishore Ganji
 
Building a viral mobile application for your startup
Building a viral mobile application for your startupBuilding a viral mobile application for your startup
Building a viral mobile application for your startupCaleb Yang
 
ROUTING AND TRACKING SYSTEM FOR BUSES
ROUTING AND TRACKING SYSTEM FOR BUSESROUTING AND TRACKING SYSTEM FOR BUSES
ROUTING AND TRACKING SYSTEM FOR BUSEScsandit
 
Native android applications developer
Native android applications developerNative android applications developer
Native android applications developerSubrata Mandal
 
HCI - Group Report for Metrolink App
HCI - Group Report for Metrolink AppHCI - Group Report for Metrolink App
HCI - Group Report for Metrolink AppDarran Mottershead
 
Sunvis School Bus Tracking with RFID - Presntation
Sunvis School  Bus Tracking with RFID -  PresntationSunvis School  Bus Tracking with RFID -  Presntation
Sunvis School Bus Tracking with RFID - PresntationRagu Nathan
 
Bus tracking and ticketing system 2-3-4-5-6-7-8-9-10
Bus tracking and ticketing system 2-3-4-5-6-7-8-9-10Bus tracking and ticketing system 2-3-4-5-6-7-8-9-10
Bus tracking and ticketing system 2-3-4-5-6-7-8-9-10IAEME Publication
 
Gps enabled android application for bus
Gps enabled android application for busGps enabled android application for bus
Gps enabled android application for buseSAT Publishing House
 
Real time bus information system
Real time bus information systemReal time bus information system
Real time bus information systemSatamanyu Dash
 

Was ist angesagt? (20)

Portfolio
PortfolioPortfolio
Portfolio
 
AR Location Notification Android Application
AR Location Notification Android ApplicationAR Location Notification Android Application
AR Location Notification Android Application
 
Rajasthan Tourism Android App
Rajasthan Tourism Android App Rajasthan Tourism Android App
Rajasthan Tourism Android App
 
Costing for app like chilli69 dating app by EONSSoftTech
Costing for app like chilli69 dating app by EONSSoftTechCosting for app like chilli69 dating app by EONSSoftTech
Costing for app like chilli69 dating app by EONSSoftTech
 
Fuel and Service Station Finder
Fuel and Service Station FinderFuel and Service Station Finder
Fuel and Service Station Finder
 
How do i start an uber clone app
How do i start an uber clone app How do i start an uber clone app
How do i start an uber clone app
 
Consumer hero newscreens
Consumer hero newscreensConsumer hero newscreens
Consumer hero newscreens
 
Ashish_Android_Resume
Ashish_Android_ResumeAshish_Android_Resume
Ashish_Android_Resume
 
Android_Application_Developer_2.0Exp_Resume
Android_Application_Developer_2.0Exp_ResumeAndroid_Application_Developer_2.0Exp_Resume
Android_Application_Developer_2.0Exp_Resume
 
Building a viral mobile application for your startup
Building a viral mobile application for your startupBuilding a viral mobile application for your startup
Building a viral mobile application for your startup
 
ROUTING AND TRACKING SYSTEM FOR BUSES
ROUTING AND TRACKING SYSTEM FOR BUSESROUTING AND TRACKING SYSTEM FOR BUSES
ROUTING AND TRACKING SYSTEM FOR BUSES
 
FUN AND FOOD PPT
FUN AND FOOD PPTFUN AND FOOD PPT
FUN AND FOOD PPT
 
Native android applications developer
Native android applications developerNative android applications developer
Native android applications developer
 
HCI - Group Report for Metrolink App
HCI - Group Report for Metrolink AppHCI - Group Report for Metrolink App
HCI - Group Report for Metrolink App
 
Sunvis School Bus Tracking with RFID - Presntation
Sunvis School  Bus Tracking with RFID -  PresntationSunvis School  Bus Tracking with RFID -  Presntation
Sunvis School Bus Tracking with RFID - Presntation
 
dharmesh final Resume
dharmesh final Resumedharmesh final Resume
dharmesh final Resume
 
Bus tracking and ticketing system 2-3-4-5-6-7-8-9-10
Bus tracking and ticketing system 2-3-4-5-6-7-8-9-10Bus tracking and ticketing system 2-3-4-5-6-7-8-9-10
Bus tracking and ticketing system 2-3-4-5-6-7-8-9-10
 
Gps enabled android application for bus
Gps enabled android application for busGps enabled android application for bus
Gps enabled android application for bus
 
Real time bus information system
Real time bus information systemReal time bus information system
Real time bus information system
 
Final_report
Final_reportFinal_report
Final_report
 

Andere mochten auch

Codes and conventions of music mag covers
Codes and conventions of music mag coversCodes and conventions of music mag covers
Codes and conventions of music mag coversShobyone
 
Day 15: Working in Background
Day 15: Working in BackgroundDay 15: Working in Background
Day 15: Working in BackgroundAhsanul Karim
 
Resume Writing Session for entry level
Resume Writing Session for entry levelResume Writing Session for entry level
Resume Writing Session for entry levelMuhammad ELSalamony
 
Location Based services
Location Based servicesLocation Based services
Location Based servicesFraj Alshahibi
 
My Project Report Documentation with Abstract & Snapshots
My Project Report Documentation with Abstract & SnapshotsMy Project Report Documentation with Abstract & Snapshots
My Project Report Documentation with Abstract & SnapshotsUsman Sait
 

Andere mochten auch (9)

Android OS
Android OSAndroid OS
Android OS
 
Codes and conventions of music mag covers
Codes and conventions of music mag coversCodes and conventions of music mag covers
Codes and conventions of music mag covers
 
RESUME
RESUMERESUME
RESUME
 
Steps towards bright way
Steps towards bright waySteps towards bright way
Steps towards bright way
 
Day 15: Working in Background
Day 15: Working in BackgroundDay 15: Working in Background
Day 15: Working in Background
 
ATM Locator
ATM LocatorATM Locator
ATM Locator
 
Resume Writing Session for entry level
Resume Writing Session for entry levelResume Writing Session for entry level
Resume Writing Session for entry level
 
Location Based services
Location Based servicesLocation Based services
Location Based services
 
My Project Report Documentation with Abstract & Snapshots
My Project Report Documentation with Abstract & SnapshotsMy Project Report Documentation with Abstract & Snapshots
My Project Report Documentation with Abstract & Snapshots
 

Ähnlich wie Google Location Services

[English] Create Mobile LBS Application Using Maps API
[English] Create Mobile LBS Application Using Maps API[English] Create Mobile LBS Application Using Maps API
[English] Create Mobile LBS Application Using Maps APIGoogle Cloud Platform - Japan
 
Introduction to Google Cloud Platform and APIs
Introduction to Google Cloud Platform and APIsIntroduction to Google Cloud Platform and APIs
Introduction to Google Cloud Platform and APIsGDSCSoton
 
Event Calendar - Android App Development
Event Calendar -  Android App DevelopmentEvent Calendar -  Android App Development
Event Calendar - Android App DevelopmentMobilunity
 
MapUp Tlemcen - Google Maps API
MapUp Tlemcen - Google Maps APIMapUp Tlemcen - Google Maps API
MapUp Tlemcen - Google Maps APIMeryem Bendella
 
Mobile Application Development With Android
Mobile Application Development With AndroidMobile Application Development With Android
Mobile Application Development With Androidguest213e237
 
Seminar on Android Auto
Seminar on Android AutoSeminar on Android Auto
Seminar on Android AutoKiran Krishna
 
Jaipur Bus Finder - An Android-based Application
Jaipur Bus Finder - An Android-based ApplicationJaipur Bus Finder - An Android-based Application
Jaipur Bus Finder - An Android-based ApplicationAI Publications
 
Jaipur Bus Finder - An Android-based Application
Jaipur Bus Finder - An Android-based ApplicationJaipur Bus Finder - An Android-based Application
Jaipur Bus Finder - An Android-based ApplicationAI Publications
 
Google Opening up to Developers - From 2 to 55 APIs in 3 years
Google Opening up to Developers - From 2 to 55 APIs in 3 yearsGoogle Opening up to Developers - From 2 to 55 APIs in 3 years
Google Opening up to Developers - From 2 to 55 APIs in 3 yearsPatrick Chanezon
 
Android Rally: Google Maps with LBS
Android Rally: Google Maps with LBSAndroid Rally: Google Maps with LBS
Android Rally: Google Maps with LBSsumitra22
 
Google maps platform product pitch deck
Google maps platform   product pitch deck Google maps platform   product pitch deck
Google maps platform product pitch deck Shruti M
 
Location based services 10
Location based services   10Location based services   10
Location based services 10Michael Shrove
 
Golden Gekko presentation Google I/O 2014
Golden Gekko presentation Google I/O 2014Golden Gekko presentation Google I/O 2014
Golden Gekko presentation Google I/O 2014DMI
 
Augmented reality
Augmented realityAugmented reality
Augmented realitydzubovua
 
The API SlideShare for Bankers and Fintech Executives
The API SlideShare for Bankers and Fintech ExecutivesThe API SlideShare for Bankers and Fintech Executives
The API SlideShare for Bankers and Fintech ExecutivesMX
 
Getting started with android programming
Getting started with android programmingGetting started with android programming
Getting started with android programmingPERKYTORIALS
 
Android MapView and MapActivity
Android MapView and MapActivityAndroid MapView and MapActivity
Android MapView and MapActivityAhsanul Karim
 
300 - Multiplatform Apps on Google Cloud Platform
300 - Multiplatform Apps on Google Cloud Platform300 - Multiplatform Apps on Google Cloud Platform
300 - Multiplatform Apps on Google Cloud PlatformMobileMonday Tel-Aviv
 
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015MobileMoxie
 

Ähnlich wie Google Location Services (20)

[English] Create Mobile LBS Application Using Maps API
[English] Create Mobile LBS Application Using Maps API[English] Create Mobile LBS Application Using Maps API
[English] Create Mobile LBS Application Using Maps API
 
Introduction to Google Cloud Platform and APIs
Introduction to Google Cloud Platform and APIsIntroduction to Google Cloud Platform and APIs
Introduction to Google Cloud Platform and APIs
 
Event Calendar - Android App Development
Event Calendar -  Android App DevelopmentEvent Calendar -  Android App Development
Event Calendar - Android App Development
 
MapUp Tlemcen - Google Maps API
MapUp Tlemcen - Google Maps APIMapUp Tlemcen - Google Maps API
MapUp Tlemcen - Google Maps API
 
Mobile Application Development With Android
Mobile Application Development With AndroidMobile Application Development With Android
Mobile Application Development With Android
 
Seminar on Android Auto
Seminar on Android AutoSeminar on Android Auto
Seminar on Android Auto
 
Jaipur Bus Finder - An Android-based Application
Jaipur Bus Finder - An Android-based ApplicationJaipur Bus Finder - An Android-based Application
Jaipur Bus Finder - An Android-based Application
 
Jaipur Bus Finder - An Android-based Application
Jaipur Bus Finder - An Android-based ApplicationJaipur Bus Finder - An Android-based Application
Jaipur Bus Finder - An Android-based Application
 
Google Opening up to Developers - From 2 to 55 APIs in 3 years
Google Opening up to Developers - From 2 to 55 APIs in 3 yearsGoogle Opening up to Developers - From 2 to 55 APIs in 3 years
Google Opening up to Developers - From 2 to 55 APIs in 3 years
 
Android Rally: Google Maps with LBS
Android Rally: Google Maps with LBSAndroid Rally: Google Maps with LBS
Android Rally: Google Maps with LBS
 
Google maps platform product pitch deck
Google maps platform   product pitch deck Google maps platform   product pitch deck
Google maps platform product pitch deck
 
Location based services 10
Location based services   10Location based services   10
Location based services 10
 
Ky3618721875
Ky3618721875Ky3618721875
Ky3618721875
 
Golden Gekko presentation Google I/O 2014
Golden Gekko presentation Google I/O 2014Golden Gekko presentation Google I/O 2014
Golden Gekko presentation Google I/O 2014
 
Augmented reality
Augmented realityAugmented reality
Augmented reality
 
The API SlideShare for Bankers and Fintech Executives
The API SlideShare for Bankers and Fintech ExecutivesThe API SlideShare for Bankers and Fintech Executives
The API SlideShare for Bankers and Fintech Executives
 
Getting started with android programming
Getting started with android programmingGetting started with android programming
Getting started with android programming
 
Android MapView and MapActivity
Android MapView and MapActivityAndroid MapView and MapActivity
Android MapView and MapActivity
 
300 - Multiplatform Apps on Google Cloud Platform
300 - Multiplatform Apps on Google Cloud Platform300 - Multiplatform Apps on Google Cloud Platform
300 - Multiplatform Apps on Google Cloud Platform
 
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015
 

Kürzlich hochgeladen

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
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
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
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
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
 
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
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
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
 

Kürzlich hochgeladen (20)

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
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
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
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
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)
 
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
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
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
 

Google Location Services

  • 1. Google Location Service in Android Prepared By: - Vishal Sapariya
  • 2. Contents  What is Google Location Service (Map)?  Introduction  Graphics in Google Map API  Attribution Requirements  Including google play service lib. into android project  Google Map API Key  Map Types  What provided in nearby search by Google Map  How to search nearby places using Android
  • 3. What is google location service?  The google location service make it easy for developer to build location-aware applications, without needing to focus on the details of the underlying location technology.
  • 4. Introduction  With the Google Maps Android API, you can add maps based on Google Maps data to your application.  The API automatically handles access to Google Maps servers, data downloading, map display, and response to map gestures.
  • 5. Cont. . .  You can also use API calls to add markers, polygons, and overlays to a basic map, and to change the user's view of a particular map area. These objects provide additional information for map locations, and allow user interaction with the map.
  • 6. Graphics in Google Map API  Icons anchored to specific positions on the map (Markers).  Sets of line segments (Polylines) for drawing shapes.  Enclosed segments (Polygons), filled, unfilled or hollow.
  • 7. Cont. . .  Bitmap graphics anchored to specific positions on the map (Ground Overlays).  Sets of images which are displayed on top of the base map tiles (Tile Overlays).
  • 8. Attribute Requirements  If you use the Google Maps Android API in your application, you must include the Google Play Services attribution text as part of a "Legal Notices" section in your application. Including legal notices as an independent menu item, or as part of an "About" menu item, is recommended.  The attribution text is available by making a call to GooglePlayServicesUtil.getOpenSourceSoftware LicenseInfo.
  • 9. Including google play service library into android project  First you must add Google Play services as an Android library project as follows:  Select File > Import > Android > Existing Android Code Into Workspace and click Next.  Select Browse..., enter <android-sdk- folder>/extras/google/google_play_services/libproject /google-play-services_lib, and click Finish.
  • 10. Google Map API Key  To access the Google Maps servers with the Maps API, you have to add a Maps API key to your application. The key is free, you can use it with any of your applications that call the Maps API, and it supports an unlimited number of users.  You obtain a Maps API key from the Google APIs Console by providing your application's signing certificate and its package name.
  • 11. Cont. . .  Once you have the key, you add it to your application by adding an element to your application's manifest file AndroidManifest.xml.  Understanding the process of registering your application and obtaining a key requires some knowledge of Android's publishing process and requirements.
  • 12. Cont. . .  In summary, all Android applications must be signed with a digital certificate for which you hold the private key. Because digital certificates are unique, they provide a simple way of uniquely identifying your app.  This makes them useful for tracking your application in systems such as Google Play Store, and for tracking your application's use of resources such as the Google Maps servers.
  • 13. Map Types  There are many types of maps available within the Google Maps Android API. A map's type governs the overall representation of the map. For example, an atlas usually contains political maps that focus on showing boundaries, and road maps that show all of the roads for a city or region.  The Google Maps Android API offers four types of maps, as well as an option to have no map at all: -
  • 14. Cont. . .  Normal Typical road map. Roads, some man-made features, and important natural features such as rivers are shown. Road and feature labels are also visible.  Hybrid Satellite photograph data with road maps added. Road and feature labels are also visible.
  • 15. Cont. . .  Satellite Satellite photograph data. Road and feature labels are not visible.  Terrain Topographic data. The map includes colours, contour lines and labels, and perspective shading. Some roads and labels are also visible.
  • 16. What provided in nearby search by Google Map  Airport  ATM  Bank  Bus Station  Train Station  Doctor  Hospital  Shopping Mall  Movie Theatre  Restaurant  Electrician  Plumber, Painter  There is total 96 types of filter for place searches.
  • 17. How to Search Nearby Places with Android App  Copy Library Project into Workspace  Get API Key from Developer Console  Add <meta-data> code to manifest file  Add Permissions into manifest file  Check Google Play Service is Available  Get Users Current Location  Send Request to Google Server for Nearby Places  Display Result using map/Listview
  • 18. Copy Library Project into Workspace  As shown in Previous slide
  • 19. Get API Key from Developer Console https://console.developers.google.com/project 1. Create New Project 2. Add Google Map API V2 3. Add Credentials 4. Create Android Key 5. Copy Generated API Key (for further usage)
  • 20. 1. Create New Project
  • 21. 1. Create New Project
  • 22. 1. Create New Project
  • 23. 2. Add Google Map API V2
  • 27. 5. Copy Generated API Key
  • 28. Add <meta-data> code to manifest file
  • 29. Add Permissions into manifest file
  • 30. Check Google Play Service is Available
  • 31. Current Location of Android Device
  • 32. Current Location of Android Device
  • 33. Send Request to Google Server for Nearby Places  StringBuilder sb = new StringBuilder ("https://maps.googleapis.com/maps/api/place/ nearbysearch/json?location="+ mLatitude + "," + mLongitude + "&radius="+ distance +"&sensor=true&key=yourApiKey="+type);
  • 34. Send Request to Google Server for Nearby Places  Café near by Vastrapur  https://maps.googleapis.com/maps/api/place/nearbyse arch/json?location=23.0360,72.5294&radius=100&senso r=true&key=APIKey&types=cafe
  • 36. Display Result using map/Listview