How to, if I have a coordinate
43.162055, -95.856578 and will add 100 meters in one or more directions
LocationSensor
This component provides the Android device's location, using GPS if available and an alternative method otherwise, such as cellular towers or known wireless networks.
LocationSensor
is a non-visible component providing location information, including longitude, latitude, altitude (if supported by the device), and address. This component can also provide geocoding, converting a given address (not necessarily the current one) to a latitude (with theLatitudeFromAddress
method) and a longitude (with theLongitudeFromAddress
method).In order to function, the component must have its
Enabled
property set to true, and the device must have location sensing enabled through either GPS satellites (if the device is outdoors) or an alternative method.Properties
Accuracy
- Indicates Android device accuracy level, in meters.
Altitude
- Altitude of the Android device, if available.
AvailableProviders
- List of available service providers, such as gps or network
CurrentAddress
- Physical street address of the Android device.
DistanceInterval
- Determines the minimum distance interval, in meters, that the sensor will try to use for sending out location updates. For example, if this is set to 5, then the sensor will fire a LocationChanged event only after 5 meters have been traversed. However, the sensor does not guarantee that an update will be received at exactly the distance interval. It may take more than 5 meters to fire an event, for instance.
Enabled
- If set, location information is available.
HasAccuracy
- If true, Android device can report its accuracy level.
HasAltitude
- If true, Android device can report its altitude.
HasLongitudeLatitude
- If true, Android device can report longitude and latitude.
Latitude
- Android device latitude.
Longitude
- Android device longitude.
ProviderLocked
- The device will not change the service provider.
ProviderName
- The current service provider.
TimeInterval
- Determines the minimum time interval, in milliseconds, that the sensor will try to use for sending out location updates. However, location updates will only be received when the location of the phone actually changes, and use of the specified time interval is not guaranteed. For example, if 1000 is used as the time interval, location updates will never be fired sooner than 1000ms, but they may be fired anytime after.
Events
LocationChanged(number latitude, number longitude, number altitude)
- Called when the Android device reports a new location.
StatusChanged(text provider, text status)
- Called when the status of the service provider changes.
Methods
number LatitudeFromAddress(text locationName)
- Determines the latitude of the given address.
number LongitudeFromAddress(text locationName)
- Determines the longitude of the given address.