Hi all i want to ask one thing is it possible to detect that the provided latitude and longitude are within 3-5km from my location , i searched on the community but was unable to find it
I do not believe what you tried will work unfortunately.
How to tell you if your device is near a destination is either to create a ringed fence and determine whether you are in the polygon of the geocoordinate limits or to calculate your distance from point of interest and when that distance is within certain limits; do something.
A simple way to determine how far you are from a destination is described here:
Geofence - using the MIT Map and Circle components to define a circular geofence b…
and Calculer la distance entre son domicile et un point donnée dans une textbox - #2 by SteveJG to calculate the distance continuously.
The above link calculates straight-line distance between two points; this tutorial shows how to calculate the driving distance using the MIT Navigate control
Simple Navigate by SteveJG
[NavigateRose2]
This tutorial is an example of one way to use the Navigate tool to build a Simple Navigate app. The instructions are intended for intermediate or advanced users of App Inventor 2. There are no detailed instructions. Provide similar code in your app. The Blocks are the documentation.
Navigate Control
The Navigate control provides ‘turn by turn’ directions used to get between two locations. The routing output is similar to directions provided by the G…
1 Like