INTRODUCTION TO HTML5 Geolocation. Display a Specific Location with Google Maps  You can use the Google Maps API to display a custom map on your own.

Slides:



Advertisements
Similar presentations
MFA for Business Banking – Security Code Multifactor Authentication: Quick Tip Sheets Note to Financial Institutions: We are providing these QT sheets.
Advertisements

1 The phone in the cloud Utilizing resources hosted anywhere Claes Nilsson.
Touchdevelop api api: location & maps show geo locations Disclaimer: This document is provided “as-is”. Information and views expressed in this document,
GALVESTON COUNTY, TX P-CARD TRAINING GALVESTON COUNTY.
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
HTML 5 – GeoLocation and Maps. Geolocation API What is a ”geolocation”…? A geographical location, defined in terms of – Latitude (north/south) – Longitude.
Introduction to push technology © 2009 Research In Motion Limited.
© 2009 Research In Motion Limited Methods of application development for mobile devices.
Geo Using a device’s location as an input. Why Because the user might not know where they are Because typing is the worst on small devices.
(NHA) The Laboratory of Computer Communication and Networking Network Host Analyzer.
Definitions, Definitions, Definitions Lead to Understanding.
CHAPTER 26 CREATING LOCATION-AWARE WEBPAGES USING GEOLOCATION.
SDReaderCE An Overview on Use and Functionality. Using SDReaderCE After loading the route to the handheld from SDReader6, select the route folder from.
COMPUTER TERMS PART 1. COOKIE A cookie is a small amount of data generated by a website and saved by your web browser. Its purpose is to remember information.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
StressChill App Click the StressChill icon (shown to the right) to open the app. If you do not see this on the desktop, you will find it in the pull up.
HTML5 GEOLOCATION AND SHAREPOINT GEOLOCATION What is Geolocation? How easy it is to use this service? Can we do something without Javascript?
CHAP 4. GEOLOCATION API.  You can request users to share their location and, if they agree, you can provide them with instructions on how to get to a.
UNIT 10 LINKS AND GEOLOCATION. OBJECTIVES  CO1 Describe various components of the Open Web Platform.  CO2 Create a website using HTML5.  CO3 Create.
Location-Based API 1. 2 Location-Based Services or LBS allow software to obtain the phone's current location. This includes location obtained from the.
6.1 Using AMO After this class, you will be able to: Install AMO
Web Page Design I Retest Terms Review. 1. Web pages are created using a language known as ___________. The coding of this language must follow specific.
Delight QuickBooks Online Banking Internal Support Training QuickBooks Windows 2009/2010 Online Banking.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 19 PCs on the Internet.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Web Page Design I Basic Computer Terms “How the Internet & the World Wide Web (www) Works”
HOW WEB SERVER WORKS? By- PUSHPENDU MONDAL RAJAT CHAUHAN RAHUL YADAV RANJIT MEENA RAHUL TYAGI.
Database-Driven Web Sites, Second Edition1 Chapter 5 WEB SERVERS.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
Distributed Information Retrieval Using a Multi-Agent System and The Role of Logic Programming.
Keriann Barry LIS 654.  The Geolocations plugin for Omeka provides a visual representation of an item’s location.  The administrator adds location data.
Department of Computer Science Internet Performance Measurements using Firefox Extensions Scot L. DeDeo Professor Craig Wills.
Integrating and Troubleshooting Citrix Access Gateway.
GPS (Global Positioning System). Allows you to share your location in real time and locate your friends using smartphones and GPS.
The Pocket GPS By: Samantha Rossman Tom Whitson. Goal of the Project: Display: Latitude Longitude Speed Direction Date & Time GPS should be small enough.
Geolocation Plugin
FriendFinder Location-aware social networking on mobile phones.
Phonegap Bridge – Device, Network, Console, Geolocation API’s CIS 136 Building Mobile Apps 1.
FriendFinder Location-aware social networking on mobile phones.
HTML5 based Notification System for Updating E-Training Contents Yu-Doo Kim 1 and Il-Young Moon 1 1 Department of Computer Science Engineering, KoreaTech,
LESSON 15 – UNIT 0 ADAPTING YOUR WEB SITE FOR MOBILE DEVICES.
RIA Geo Location. Finding Location modern devices can get location coordinates phones and tablets can use GPS desktops and laptops –often cannot use GPS.
Rich Internet Applications 9. HTML 5 and RIAs. HTML 5 Standard currently under development by W3C Aims to improve the language with support for the latest.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
SNG via Webinar. Where’s Webinar??  Double click Aflac 2000 folder  Highlight “SNGWebCommunicator”  Right Click and “Send To - Desktop”
Google Web Toolkit for Mobile Applications Development INGENUITY AT ITS BEST……………….
JavaScript, Sixth Edition
Phonegap Bridge –Geolocation and Google maps CIS 136 Building Mobile Apps 1.
丁建文 國立高雄應用科大資管系副教授 兼任計網中心軟體發展組組長 跨平台行動應用軟體開發技術 : HTML5 & Mobile JavaScript Framework 暨南大學.
1 Lesson 10 Operating System Customization Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
APP DESIGN AND DEVELOPMENT WITH THE IONIC FRAMEWORK Chuck Leone
Proctor Caching Overview. 2 Proctor Caching Diagram.
GOOGLE TAG MANAGER. INTRODUCTION Google Tag Manager (GTM) is a free solution, introduced in October Google Tag Manager (GTM) is a free solution,
MEDIA KIT. WHO WE ARE? YOUR TEXT HERE 6:58 min AVG. SESSION DURATION 13.6M+ UNIQUE USERS 2.8M+ FACEBOOK LIKES 189M+ MONTHLY PAGE VIEWS 71.3M+ RETURNING.
Phonegap API & Phonegap Bridge CIS 136 Building Mobile Apps 1.
Development of Internet Applications HTML5 Ing. Jan Janoušek 7.
Lesson 11: Web Services and API's
REDCap Mobile Application
Waypoint: An Off Road Navigator
Lesson 11: Web Services & API's
Geolocation using Google maps
Emergency Call With Team on the Run, users can make emergency PTT calls to a preset list of recipients, informing them about critical situations. The feature.
How to register and use ODMAP for Fire/EMS and other partners
APIs and Synchronization
The Application Lifecycle
Geolocation using Google maps
Configuring Internet-related services
Lesson 11: Web Services and API's
Geolocation using Google maps
Presentation transcript:

INTRODUCTION TO HTML5 Geolocation

Display a Specific Location with Google Maps  You can use the Google Maps API to display a custom map on your own web page, zoomed and centered on latitude and longitude coordinates that you specify.  By typing in your own coordinates, you do not need to use any GPS or Geolocation API methods on the user’s web browser, but you will still need to identify the coordinates yourself.

Display a Specific Location with Google Maps

 The Google Maps API is very flexible; you can even place landmark icons at specific coordinates on your custom map.

Display a Specific Location with Google Maps

Geolocation and GPS Services  The Geolocation API, a new feature for HTML5, is managed by an official W3C specification.  It allows for a standard way for websites to access location- specific data about the user.  This process uses multiple methods to retrieve the user’s coordinates, via GPS or other geolocation services, and makes the information available over JavaScript.

Web Browser Interface  Web browsers that support the Geolocation API provide a new object over JavaScript, navigator.geolocation, that you can interface with.  Mobile web browsers supply data to navigator.geolocation through built-in GPS radios, cell-tower location detection, or a combination of both.  Many of these devices offer a way for the user to disable support and to save battery life, and as such the API will not be available.  Desktop web browsers supply navigator.geolocation with information gleaned primarily from public IP addresses, Internet service provider hints, and Wi-Fi connection information, if available.

Prompting the User for Access  When the Geolocation API is initialized, a notification prompt is displayed to the user.  Only when the user agrees to the request for location information will the browser grant it to the JavaScript program provided by the website.  The user’s preference is then usually remembered for that website, so if you decline once, you should not be re-asked on that domain until you reset your privacy settings.

Disabling Geolocation  Geolocation can easily be disabled by the user at various levels, depending on the device.  For example, iOS devices allow the user to disable geolocation on the entire device or only for specific applications.  Many web browsers allow users to disable geolocation for all websites or only for specific websites.  If you are having any problems using the Geolocation API on any device or you want to change your preference setting, verify in your operating system control panel and your web browser settings the state of geolocation support.

Geolocation API  The Geolocation API runs in three basic states:  Requesting  Displaying a successful request  Displaying a failed request.

Requesting Coordinates  When you are ready to request coordinates from the browser, launch the Geolocation API method getCurrentPosition():  When the request attempt is completed, either the successHandler function or failureHandler function is executed.  An optional optionMap can be used to specify additional configuration properties to fine-tune the specific request. OptionDescription enableHighAccuracyA Boolean that means the application wants the highest accuracy available for the coordinate results. timeoutAn integer to adjust the timeout for a pending request to fail. maximumAgeAn integer indicating the age of the last-known cached position.

Successful Request Callback  If a position becomes available before the timeout, the browser executes the successHandler callback function and provides one argument, a position object.  The object returned will contain the following properties:  coords.latitude — The degrees latitude.  coords.longitude — The degrees longitude.  coords.accuracy — The number of meters accuracy to the coordinates returned.  coords.altitude — The number of meters above the earth’s average surface level. (Available only on mobile phones with GPS)  coords.altitudeAccuracy — The number of meters accuracy to the surface level altitude. (Available only on mobile phones with GPS)  timestamp — A Date object timestamp.

Failed Request Callback  If a position cannot be discovered, the browser executes the failureHandler function with an error object as its argument.  The object returned will contain the following properties:  message — A plain-text message describing the error.  code — The error code.  The object may report that the Geolocation service is unavailable or that the request has timed out.

Request the User’s Current Location  Download the libraries and javascript.googlecode.com/svn/trunk/js/geo.js and save them into your website directory. javascript.googlecode.com/svn/trunk/js/geo.js

Request the User’s Current Location

Display the User’s Current Location with Google Maps