Quantcast
Channel: ProgrammableWeb - Location
Viewing all articles
Browse latest Browse all 1090

Latest Google Play Services SDK Includes LocationServices APIs

$
0
0
Primary Target Audience: 
Primary Channel: 
Primary category: 
Secondary category: 
Related Companies: 
Summary: 
Google was pleased to announced new LocationServices APIs within release 11 of its Google Play services SDK. The new APIs greatly reduce the number of manual steps required by code to use certain location services. The new APIs automate many tasks and lessens the chance of errors.

Google's 11.0.0 release of its Google Play services SDK reduces tedious, error-prone tasks through new location APIs. The new LocationServices APIs enable developers to retrieve device location, create geofences, trigger users to enable location services, and more. The LocationServices APIs streamline, and automate these processes which makes their use more beneficial, and less error-prone than continuing to do so through GoogleApiClient.



Prior to the new APIs, connections to such services required manual management. The new APIs automates the task, which eliminates some of the most common errors. Even if common code errors are avoided, certain limitations within the GoogleApiClient make the solution less than ideal. Setting up access in multiple activities is difficult; if the app doesn't connect to Google Play services, the case isn't handled; quite a bit of boilerplate connection logic is required; and much more makes the new release a welcome site.



Google lists a number of ways in which the new LocationServices APIs will benefit code immediately. First, API calls automatically wait for service connection, so there is no longer a need for onConnected. Next, the Task API is used which streamlines asynchronous operation creation. Third, the code is self-contained which makes for simple sharing and movement. Finally, the need to understand underlying connection processes has gone away.



For those ready to jump in, check out the location samples on GitHub. Review the reference docs for specific details. For some quick examples of how code can be dramatically improved with the new APIs, check out Google's blog post announcement.

Content type group: 
Articles

Viewing all articles
Browse latest Browse all 1090

Trending Articles