Skip to content

Commit be7a294

Browse files
author
Victoria Lease
committed
DO NOT MERGE clarify Geofence.createCircle() param ranges
Cherry-pick I2ca647595275fde610047f681722b19dc41416da from master: This commit adds the valid ranges to the latitude/longitude parameters in Geofence.createCircle()'s javadoc. Bug: 7172696 Change-Id: Iecef09a5fa11be586b05f9f75107c3e77e637d28
1 parent 16d83fd commit be7a294

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

location/java/android/location/Geofence.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ public final class Geofence implements Parcelable {
3636
/**
3737
* Create a horizontal, circular geofence.
3838
*
39-
* @param latitude latitude in degrees
40-
* @param longitude longitude in degrees
39+
* @param latitude latitude in degrees, between -90 and +90 inclusive
40+
* @param longitude longitude in degrees, between -180 and +180 inclusive
4141
* @param radius radius in meters
4242
* @return a new geofence
4343
* @throws IllegalArgumentException if any parameters are out of range

0 commit comments

Comments
 (0)