lecture 6 geolocation
DESCRIPTION
L6TRANSCRIPT
![Page 1: Lecture 6 geolocation](https://reader036.vdocuments.us/reader036/viewer/2022062307/5584fa92d8b42ab8128b4874/html5/thumbnails/1.jpg)
App Design for Business
Topic: Geolocation
Topic Number: 6
![Page 2: Lecture 6 geolocation](https://reader036.vdocuments.us/reader036/viewer/2022062307/5584fa92d8b42ab8128b4874/html5/thumbnails/2.jpg)
2
Key topics / learning outcomes of this lecture
• Learn about Geolocation and how useful it is for application design.
![Page 3: Lecture 6 geolocation](https://reader036.vdocuments.us/reader036/viewer/2022062307/5584fa92d8b42ab8128b4874/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://reader036.vdocuments.us/reader036/viewer/2022062307/5584fa92d8b42ab8128b4874/html5/thumbnails/4.jpg)
B4004A L1 4
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;
![Page 5: Lecture 6 geolocation](https://reader036.vdocuments.us/reader036/viewer/2022062307/5584fa92d8b42ab8128b4874/html5/thumbnails/5.jpg)
B4004A L1 5
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;
![Page 6: Lecture 6 geolocation](https://reader036.vdocuments.us/reader036/viewer/2022062307/5584fa92d8b42ab8128b4874/html5/thumbnails/6.jpg)
B4004A L1 6
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;
![Page 7: Lecture 6 geolocation](https://reader036.vdocuments.us/reader036/viewer/2022062307/5584fa92d8b42ab8128b4874/html5/thumbnails/7.jpg)
B4004A L1 7
Google Servers
• The data collected is sent to Google servers• Google return the location information
![Page 8: Lecture 6 geolocation](https://reader036.vdocuments.us/reader036/viewer/2022062307/5584fa92d8b42ab8128b4874/html5/thumbnails/8.jpg)
B4004A L1 8
Latitude and Longitude
![Page 9: Lecture 6 geolocation](https://reader036.vdocuments.us/reader036/viewer/2022062307/5584fa92d8b42ab8128b4874/html5/thumbnails/9.jpg)
B4004A L1 9
Geolocation for AndroidTools Required
Install the latest version of Google Playand• an AVD that runs Android 4.2.2 or higher or• a compatible Android device
![Page 10: Lecture 6 geolocation](https://reader036.vdocuments.us/reader036/viewer/2022062307/5584fa92d8b42ab8128b4874/html5/thumbnails/10.jpg)
B4004A L1 10
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).
![Page 11: Lecture 6 geolocation](https://reader036.vdocuments.us/reader036/viewer/2022062307/5584fa92d8b42ab8128b4874/html5/thumbnails/11.jpg)
B4004A L1 11
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;
![Page 12: Lecture 6 geolocation](https://reader036.vdocuments.us/reader036/viewer/2022062307/5584fa92d8b42ab8128b4874/html5/thumbnails/12.jpg)
B4004A L1 12
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.
![Page 13: Lecture 6 geolocation](https://reader036.vdocuments.us/reader036/viewer/2022062307/5584fa92d8b42ab8128b4874/html5/thumbnails/13.jpg)
13
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
![Page 14: Lecture 6 geolocation](https://reader036.vdocuments.us/reader036/viewer/2022062307/5584fa92d8b42ab8128b4874/html5/thumbnails/14.jpg)
End of presentation
© Pearson College 2013
![Page 15: Lecture 6 geolocation](https://reader036.vdocuments.us/reader036/viewer/2022062307/5584fa92d8b42ab8128b4874/html5/thumbnails/15.jpg)