Lecture 6 geolocation
-
Upload
moduledesign -
Category
Education
-
view
82 -
download
0
description
Transcript of Lecture 6 geolocation
![Page 1: Lecture 6 geolocation](https://reader034.fdocuments.net/reader034/viewer/2022042614/559a5a241a28ab114a8b473b/html5/thumbnails/1.jpg)
Application Engineering and Development
Topic: Geolocation
Topic Number: 6
![Page 2: Lecture 6 geolocation](https://reader034.fdocuments.net/reader034/viewer/2022042614/559a5a241a28ab114a8b473b/html5/thumbnails/2.jpg)
Key topics / learning outcomes of this lecture
• Learn about Geolocation and how useful it is for application design.
2
![Page 3: Lecture 6 geolocation](https://reader034.fdocuments.net/reader034/viewer/2022042614/559a5a241a28ab114a8b473b/html5/thumbnails/3.jpg)
What is Geolocation?
• Geolocation is the identification of the real-world geographic location of an object. It provides:
• Location awareness• Location tracking• Geofencing
– a predefined set of boundaries;
• Activity recognition– walking, running;
Geolocation originates from the words “geographic location”.
![Page 4: Lecture 6 geolocation](https://reader034.fdocuments.net/reader034/viewer/2022042614/559a5a241a28ab114a8b473b/html5/thumbnails/4.jpg)
Geolocation Uses
• Applications– banking, ecommerce, media, telecommunications,online gaming;
• Criminal investigations– money laundering, trafficking, terrorism detection;
• Fraud detection– Bank payment location mismatch;
• Geo marketing– advertisements relevant to that location;
• Regional licensing– online casinos must know where there customers are by law;– online broadcasters can stream content in certain locations so as to comply
with geographic licensing regulations;
• Content Targetting– local weather;– advertising;
B4004A L1 4
![Page 5: Lecture 6 geolocation](https://reader034.fdocuments.net/reader034/viewer/2022042614/559a5a241a28ab114a8b473b/html5/thumbnails/5.jpg)
Systems for Finding Device Location
• Global Position System (GPS)– hardware: satellite;
• accurate to 5 – 100 meters approx;
• Nearest cell tower– hardware: cell tower;
• urban areas – accurate to 500 – 1000 meters approx;
• suburban areas – accurate to 1000 – 2000 meters approx;
• Nearest Wi-Fi hot spot– hardware: Wi-Fi hot spot equipment;
• accurate to 20 – 50 meters approx;
B4004A L1 5
![Page 6: Lecture 6 geolocation](https://reader034.fdocuments.net/reader034/viewer/2022042614/559a5a241a28ab114a8b473b/html5/thumbnails/6.jpg)
Internet Geolocation Use
• Internet Protocol (IP) address;– data provided includes country, region, city, postcode, latitude,
longitude and timezone;• Geolocation uses a WHOIS lookup service and retrieves registrant’s
physical address for this data;
• MAC address;– geolocation can be associated with a MAC address;
• RFID;– geolocation can be associated with RFID;
• Wi-Fi positioning;– geolocation can be associated with Wi-Fi equipment;
• Device GPS co-ordinates;– geolocation can be associated with GPS systems;
B4004A L1 6
![Page 7: Lecture 6 geolocation](https://reader034.fdocuments.net/reader034/viewer/2022042614/559a5a241a28ab114a8b473b/html5/thumbnails/7.jpg)
Google Servers
• The data collected is sent to Google servers
• Google return the location information
B4004A L1 7
![Page 8: Lecture 6 geolocation](https://reader034.fdocuments.net/reader034/viewer/2022042614/559a5a241a28ab114a8b473b/html5/thumbnails/8.jpg)
Latitude and Longitude
B4004A L1 8
![Page 9: Lecture 6 geolocation](https://reader034.fdocuments.net/reader034/viewer/2022042614/559a5a241a28ab114a8b473b/html5/thumbnails/9.jpg)
Geolocation for AndroidTools Required
Install the latest version of Google Play
and
• an AVD that runs Android 4.2.2 or higher
or
• a compatible Android device
B4004A L1 9
![Page 10: Lecture 6 geolocation](https://reader034.fdocuments.net/reader034/viewer/2022042614/559a5a241a28ab114a8b473b/html5/thumbnails/10.jpg)
Reference data source
• NETWORK_PROVIDER;
– access Wi-Fi and cell towers;
• GPS_PROVIDER;
– access GPS;
• PASSIVE_PROVIDER;
– access any current provider; (not recommended except for quick reference when an app is first started).
B4004A L1 10
![Page 11: Lecture 6 geolocation](https://reader034.fdocuments.net/reader034/viewer/2022042614/559a5a241a28ab114a8b473b/html5/thumbnails/11.jpg)
Obtain Device Location
• Set permissions in the Android manifest file
– ACCESS_COARSE_LOCATION;
• access the network provider;
– ACCESS_FINE_LOCATION;
• access GPS or the network provider;
– INTERNET;
• add this if you want the network provider to include the Wi-Fi information;
B4004A L1 11
![Page 12: Lecture 6 geolocation](https://reader034.fdocuments.net/reader034/viewer/2022042614/559a5a241a28ab114a8b473b/html5/thumbnails/12.jpg)
Seminar
• In the Seminar to this tutorial, we will be working through a video tutorial to set up a functioning location app that will provide the latitude and longitude co-ordinates of the device.
B4004A L1 12
![Page 13: Lecture 6 geolocation](https://reader034.fdocuments.net/reader034/viewer/2022042614/559a5a241a28ab114a8b473b/html5/thumbnails/13.jpg)
Essential work for next week
• Please consult the OLE for details of:– Essential readings*
– Seminar/workshop preparation work*
– Recommended further readings
– Any additional learning
* Essential readings and preparation work must always be completed in time for the next session
13
![Page 14: Lecture 6 geolocation](https://reader034.fdocuments.net/reader034/viewer/2022042614/559a5a241a28ab114a8b473b/html5/thumbnails/14.jpg)
End of presentation
© Pearson College 2013
![Page 15: Lecture 6 geolocation](https://reader034.fdocuments.net/reader034/viewer/2022042614/559a5a241a28ab114a8b473b/html5/thumbnails/15.jpg)