Geolocation is undoubtedly one the the most relevant functions that a geo app may implement, so in this chapter I present the procedures for handling geolocation in an app. I will consider geolocation capabilities offered by HTML5 with the W3C Geolocation API. Since this is the last chapter dedicated to realizing map-based web apps, I will conclude it by gathering some of the functions I showed you in previous chapters to form a simple, yet complete, U2’s Dublin web app.
Using specific sensors and methods, geolocation can identify the position of a device – in our case, an iOS device – within a geographic reference system (that is using geographical coordinates, latitude and longitude). ...