michaelmika / react-native-simple-native-geofencing

a native geofencing module for react-native
38 stars 19 forks source link

Unit of Radius used to create geofence. #6

Closed lakshbhutani closed 5 years ago

lakshbhutani commented 5 years ago

let geofences = [ { key: "geoNum1", latitude: 38.9204, longitude: -77.0175, radius: 200, value: "yellow" }, { key: "geoNum2", latitude: 38.9248, longitude: -77.0258, radius: 100, value: "green" }, { key: "geoNum3", latitude: 47.423, longitude: -122.084, radius: 150, value: "red" } ]; what is the unit of radius used to create geofence?

michaelmika commented 5 years ago

Radius is in meters. For choosing the best radius, see docs for android. Apples Docs aren't as good however, but it should work properly with a radius > 100m.