Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b53dc8b authored by smain@google.com's avatar smain@google.com Committed by Android (Google) Code Review
Browse files

Merge "add Places API to the Location feature page" into lmp-docs

parents dd461b29 0248e9aa
Loading
Loading
Loading
Loading
+40 −11
Original line number Original line Diff line number Diff line
@@ -12,24 +12,25 @@ header.hide=1


<div class="col-6">
<div class="col-6">


<h1 itemprop="name" style="margin-bottom:0;">Location APIs</h1>
<h1 itemprop="name" style="margin-bottom:0;">Location &amp; Places</h1>
<p itemprop="description">
<p itemprop="description">
    The location APIs make it easy for you to build location-aware applications, without needing to
    The location APIs make it easy for you to build location-aware applications, without needing to
    focus on the details of the underlying location technology. They also let you minimize
    focus on the details of the underlying location technology. The related Places APIs also help
    power consumption by using all of the capabilities of the device hardware.
    your app identify real-world points of interest near the user.
</p>
</p>

<p>
<p>
    To get started, first <a href="{@docRoot}google/play-services/setup.html">set up</a>
    To get started, first <a href="{@docRoot}google/play-services/setup.html">set up</a>
    the Google Play services SDK. You can learn how to use the APIs in the training
    the Google Play services SDK. To learn how to identify the user's location, see
    class <a href="{@docRoot}training/location/index.html">Making Your App Location Aware</a>, 
    <a href="{@docRoot}training/location/index.html">Making Your App Location Aware</a>, or to
    and details are available in the <a href="{@docRoot}reference/com/google/android/gms/location/package-summary.html">Location API reference</a>. <!-- To look at a code example, <a href="">download the sample app</a>. -->
    identify nearby places, see the
<a href="https://developers.google.com/places/android">Google Places API for Android</a>
developer guide.
</p>
</p>
</div>
</div>
</div>
</div>
<div class="landing-docs">
<div class="landing-docs">
  <h3 style="clear:left">Key Developer Features</h3>
  <h3 style="clear:left">Key Developer Features</h3>
  <div class="layout-content-row">
  <div class="layout-content-row normal-links">
  <div class="layout-content-col span-6">
  <div class="layout-content-col span-6">




@@ -74,9 +75,37 @@ header.hide=1
</div>
</div>


<div class="layout-content-col span-6">
<div class="layout-content-col span-6">

<h4 style="font-weight:bold">Places API</h4>

<p>The <a href="https://developers.google.com/places/android/">Google
Places API for Android</a> helps you build location-aware apps
that respond contextually to the local businesses and other places near the
device:</p>

<ul>
<li>Use the built-in
  <a href="https://developers.google.com/places/android/placepicker">place
  picker</a> UI widget, allowing users to select a place on an interactive
  map.</li>
<li>Identify the user's
  <a href="https://developers.google.com/places/android/current-place">current
  place</a>, such as a local business, point of interest, or other geographic location.</li>
<li>Retrieve and display rich
  <a href="https://developers.google.com/places/android/place-details">information
  about a place</a>.</li>
<li>Make it easy to enter place names and addresses, by
  <a href="https://developers.google.com/places/android/autocomplete">autocompleting</a>
  your users' queries as they type.</li>
<li>Differentiate your app by supplying up-to-date local information, and
  <a href="https://developers.google.com/places/android/add-place">adding
  places</a> to Google's Places database.</li>
</ul>


<h4 style="font-weight:bold">Activity recognition</h4>
<h4 style="font-weight:bold">Activity recognition</h4>


<p>With apps becoming increasingly contextual, understanding what the user is doing is critical to surfacing the right content. The Activity recognition API makes it easy to check the user’s current activity&mdash;still, walking, cycling, and in-vehicle&mdash;with very efficient use of the battery.</p>
<p>The Activity recognition API makes it easy to check the user’s current activity&mdash;still, walking, cycling, and in-vehicle&mdash;with very efficient use of the battery:</p>
<ul>
<ul>
    <li>
    <li>
        <em>Optimized for battery</em>: Uses low-power sensors to recognize the user's current physical activity.
        <em>Optimized for battery</em>: Uses low-power sensors to recognize the user's current physical activity.
@@ -87,8 +116,8 @@ header.hide=1
        navigation app can request more frequent updates when the user is driving.
        navigation app can request more frequent updates when the user is driving.
    </li>
    </li>
    <li>
    <li>
        <em>Features for advanced applications</em>: For advanced applications that want to do their own
        <em>Advanced activity detection</em>: For apps that want to do their own
        post-processing, this API also makes available confidence values for each of the activities.
        post-processing, the activity APIs provide confidence values for each of the activities.
        It also includes two activities that indicate unreliable measurements: unknown and tilt.
        It also includes two activities that indicate unreliable measurements: unknown and tilt.
    </li>
    </li>
</ul>
</ul>