geofence_h fence_h;
geofence_create_geopoint(place_id, latitude, longitude, radius, address, &fence_h);
</pre></li>
-<li>Wi-Fi/Bluetooth geofence
+<li>Bluetooth geofence
<pre class="prettyprint">
char* bssid = "82:45:67:7E:4A:3B";
char* ssid = "Cafeteria";
</li>
<li><p>Receive the current state on request.</p>
<p>You can get the current state of the user with respect to a fence, such as the in or out state and the duration of the current state.</p>
-<ul><li><p>To access the state or the duration, first create a state handle:</p>
+<ul><li><p>To access the state or the duration, first create a status handle:</p>
<pre class="prettyprint">
int geofence_id = 1;
geofence_status_h status_h;
geofence_status_create(geofence_id, &status_h);
-geofence_status_destroy(status_h);
</pre></li>
<li><p>To get the current state, call the <span style="font-family: Courier New,Courier,monospace;">geofence_status_get_state()</span> function:</p>
<pre class="prettyprint">
int duration;
geofence_status_get_duration(status_h, &duration);
</pre>
-<p>The duration is provided in seconds.</p></li></ul>
-</li></ol>
+<p>The duration is provided in seconds.</p></li>
+<li><p>To destroy the status handle, call the <span style="font-family: Courier New,Courier,monospace;">geofence_status_destroy()</span> function:</p>
+<pre class="prettyprint">
+geofence_status_destroy(status_h);
+</pre>
+<p>The status handle should be destroyed when it is not needed.</p></li></ul>
+</ol>
<h2 id="info" name="info">Retrieving Geofence Information</h2>