1 Bus Tracker A Google Maps Application. 22 Objectives You will be able to Add an icon to a map created with the Google Maps API. Use Ajax techniques.

Slides:



Advertisements
Similar presentations
Visualizing maps on the web. What is a Map? A map is a drawing that is the representation, on a certain scale, of a terrain.
Advertisements

Google Maps API. Today’s Objectives Get Google Maps working: desktop + mobile Get clustering data complete, data onto a map.
By: Gerardo L. Mazzola Web Application Development Life Cycle “A driven force moving businesses into the future.”
1 Electrical and Computer Engineering Comprehensive Design Review February 12, 2010 Team Zink Nicholas Cipriano, Ali Jameel, Jeremy Mestancik, Brian Simakauskas.
Point Mashups Peterson. Icons Info Marker Random Points.
CHAPTER 26 CREATING LOCATION-AWARE WEBPAGES USING GEOLOCATION.
11 Using the Google Maps API. 2 Objectives You will be able to Use the Google Maps API to display a map of any location on an HTML page. Programatically.
Bonrix Track & Trace System A GPS Based Vehicle Tracing System (SMS, GPRS/3G, Offline) Bonrix Software Systems Ahmedabad (INDIA) Website:
1 Deploying a Web Application. 2 Virtual Directories Web servers map URLs to directories in their file systems. Called virtual directories. Normally one.
Set 11: Mashups (emphasis on Google tools) IT452 Advanced Web and Internet Systems.
Programming Games Recap on Google Maps. Creating elements. Dynamic creation of elements (multiple video elements). Geolocation. Classwork/Homework: Catch-up.
Programming games Examples: Audio example. Google Maps api. Classwork: show more complex video. Classwork/Homework: Find place (lat and long) for basic.
Google Maps API. Static Maps send an HTTP GET request receive an image (PNG, GIF, JPEG) no javascript needed encode params in URL example:
Programming Games Google Map API examples. CSS. Classwork/homework: Catch up. Upload work. Show your [more] complex Google Maps API example. Plan your.
Open University of Sri Lanka. Domain n Open University of Sri Lanka Web browser Hand held device CyberGIS Web Cloud Existing GIS providers GPS device.
Orbited Scaling Bi-directional web applications A presentation by Michael Carter
How data rule the world Kristoffer Benjaminsson CTO.
Participatory App ArcGIS Server Final Presentation Christian Paluschek Georg Tschorn Philipp Weiß Michael Wilbers Eva Zimmermann.
C# AND ASP.NET What will I do in this course?. MAJOR TOPICS Learn to program in the C# language with the Visual Studio IDE (Interactive Development Environment)
Programming Games Reprise: storage, datatypes. Geolocation/Google API example. Work session Homework: [Catch up. Upload work. Post proposal.] Work on your.
Telerik Software Academy ASP.NET Web Forms Telerik Software Academy ASP.NET Web Forms.
Development Process Agile/XP Planning + Issue Tracking Google Code provided efficient + effective project management Bug and defect reports Project planning.
Keriann Barry LIS 654.  The Geolocations plugin for Omeka provides a visual representation of an item’s location.  The administrator adds location data.
Introduction to MVC Introduction NTPCUG Tom Perkins, Ph.D.
Types of Spatial Data Sites Data portals: Find and download data –Humboldt County, National Atlas “Atlases”: General information –GoogleMaps, MapQuest.
Creating Interfaces Show form validation examples, Hangman. HTML5 with Google Maps API. Add in localStorage. Design pitfalls. Homework: Make proposal for.
Static Locations, Dynamic Content.
Wildland Fire Management Information (WFMI) Weather Lesson 3: View Choices February 2013.
Introduction to webservices Ulanbek turdukulov ITC.
PHP and AJAX. Servers and Clients For many years we tried to move as much as possible to the server. Weak clients, poor bandwidth, browser compatibility..
JavaScript, Sixth Edition
Phonegap Bridge –Geolocation and Google maps CIS 136 Building Mobile Apps 1.
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
Website Design and Construction Services and Standards.
APP DESIGN AND DEVELOPMENT WITH THE IONIC FRAMEWORK Chuck Leone
MICROSOFT AJAX CDN (CONTENT DELIVERY NETWORK) Make Your ASP.NET site faster to retrieve.
Industry case study: Data Eric Brumer 2/19/2014. Agenda Belltower Books Belltower Books Trucking: backend & frontend Google maps & javascript.
1 Using the Google Maps JavaScript API. 2 The Google Maps APIs Permit web applications to use functionality of google maps. Documentation:
Creating Databases Example using Google Maps API + file creation. Dollar sign problem. Classwork/Homework: [catch up]. Work on final project.
Google Maps API. Contents: 1. Google Maps API Key 2. Create a Basic Google Map 3. Google Maps Overlays 4. Google Maps Events 5. Google Maps Controls 6.
MVC Controllers TestsMigrations Ye Olde Internet Model DB Server Router View Browser Today’s focus Controller.
1 ODF and Web Mashups Basic techniques Rob Weir, IBM :15.
Google Maps API v3: Built First for Mobile Susannah Raub Google June 24, 2010.
ISC440: Web Programming 2 Web APIs Google Maps API
Android Application Maps 1.
Location-Based Services: Part 2 (Google Maps)
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
Web Services application that operates over a network
AnDroid GoogleMaps API
Active Server Pages Computer Science 40S.
Ad-blocker circumvention System
Warm Handshake with Websites, Servers and Web Servers:
CHAPTER 9 APIS. CHAPTER 9 APIS WHAT IS AN API?
Tracking and Booking Taxi
Some Common Terms The Internet is a network of computers spanning the globe. It is also called the World Wide Web. World Wide Web It is a collection of.
Internet.
Geolocation using Google maps
Getting Started with Dreamweaver
Google Maps Tutorials Android Studio. About Google map Google Maps is a web mapping service developed by Google. Google Maps began as a C++ desktop program.
JavaScript: Array, Loop, Data File
browser search engine web page
Geolocation using Google maps
Computer Networks and Internet
CS323 Android Topics Network Basics for an Android App
Types of Spatial Data Sites
Types of Spatial Data Sites
MVC Controllers.
Types of Spatial Data Sites
Your computer is the client
Geolocation using Google maps
Presentation transcript:

1 Bus Tracker A Google Maps Application

22 Objectives You will be able to Add an icon to a map created with the Google Maps API. Use Ajax techniques to get a map location from a web application. Position the icon on the map at a specified latitude and longitude. Update the map periodically.

3 USF BullTracker

44 The Bus Tracking Application Buses carry GPS devices to track their positions. Periodically report positions to a web server. Web server makes bus positions available to clients via HTTP requests. We will use simulated data. Client browsers display map showing position of bus. Updated periodically

55 Implementing the Bus Tracker Download and expand: 260_Google_Maps/ 260_Google_Maps/ File bus_tracker_2016.zip Make Internet Explorer the default browser. Open web site in Visual Studio

66 bus_tracker.aspx Determines simulated position of bus on route. Array route has lat-long of 90 positions along route Roughly equal intervals Total time to complete route route_time = 100 seconds (Unrealistically fast!) Current array index = (Time into current cycle / cycle time) * array length

77 bus_tracker.aspx.cs Scroll down

88 bus_tracker.aspx.cs Try it!

99 bus_tracker.aspx

10 Displaying the Bus Location Use a Google Maps Marker to show bus position. /reference#Marker /reference#Marker

11 MarkerOptions Scroll Down

MarkerOptions 12

13 The MarkerImage Class

14 The LatLng Class

15 Displaying the Bus Location Add jQuery to website Download if necessary Add to website

16 bus_viewer.js var map; var bus; function initMap() { var latitude = ; var longitude = ; var campus_center = new google.maps.LatLng(latitude, longitude) var myOptions = { zoom: 15, center: campus_center, mapTypeId: google.maps.MapTypeId.ROADMAP };

bus_viewer.js map = new google.maps.Map(document.getElementById("map"), myOptions); var image = new google.maps.MarkerImage("bus_marker_half_size.png", new google.maps.Size(23,21), new google.maps.Point(0,0), new google.maps.Point(6,10) ); bus = new google.maps.Marker({ position: { lat: 0.0, lng: 0.0 }, map: map, icon: image }); window.setTimeout(Move_Bus, 1000); } 17

18 bus_viewer.js function Move_Bus() { $.get('bus_tracker.aspx', '', Set_Bus_Position); window.setTimeout(Move_Bus, 1000); // Call Move_Bus after 1.0 sec }

19 bus_viewer.js function Set_Bus_Position(xml) { var latitude = $(xml).find('Lat').text(); var longitude = $(xml).find('Lng').text(); bus.position = new google.maps.LatLng(latitude, longitude); bus.setMap(map); }

20 bus_viewer.html

21 Set Start Page Set bus_viewer.html as the start page. Run the app.

22 Bus Viewer Running