Chapter 5Location-Based Services

  • Using the Google Maps API
  • Finding and tracking location
  • Geocoding

The wrox.com code downloads for this chapter are found at www.wrox.com/go/professionaltizen on the Download Code tab. The code is in the Chapter 5 download and the code snippets in this chapter gradually build up to form the complete application. After decompressing the downloaded Zip file you will have a tizen-lbs directory that contains the finished application.

This chapter looks at location-based services that run during the Tizen Web Runtime environment. Tizen’s Access and Privileges configuration enables you to create an application that displays a map, which you can build upon by implementing markers and making geocoding requests.

For the geolocation example application in this chapter, you will use the Google Maps v3 API, which provides a feature-rich interface that is easy to learn, fun to use, and quick to implement, facilitating rapid application development.

Along the way, you’ll discover and learn about the W3C Geolocation API and how it is used within the Tizen Web Runtime. You’ll use this API to detect a user’s location and make changes to the map so that it responds by updating its display when the user’s location has changed.

DISPLAYING A MAP

In a Tizen project you are free to use any map provider that you wish. However, whichever provider you want to use, you will more than likely need to make ...

Get Professional Tizen Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.