Lecture 6 geolocation

15
Application Engineering and Development Topic: Geolocation Topic Number: 6

description

Topic 6 Lecture 6

Transcript of Lecture 6 geolocation

Page 1: Lecture 6 geolocation

Application Engineering and Development

Topic: Geolocation

Topic Number: 6

Page 2: Lecture 6 geolocation

Key topics / learning outcomes of this lecture

• Learn about Geolocation and how useful it is for application design.

2

Page 3: Lecture 6 geolocation

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

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

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

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

Google Servers

• The data collected is sent to Google servers

• Google return the location information

B4004A L1 7

Page 8: Lecture 6 geolocation

Latitude and Longitude

B4004A L1 8

Page 9: Lecture 6 geolocation

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

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

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

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

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

End of presentation

© Pearson College 2013

Page 15: Lecture 6 geolocation