### Description

Hello every one…Today I introduce my first extension…It’s an extension that makes some calculation about addresses…

Currently it only supports getting distance between two coordinates…And also indicates if a coordinate is in a radius around a location…

Note: **This extension doesn’t use any formula in calculation…It uses a class for calculation provided by android…So calculating is more accurate…**

release time : 2020-08-06T23:00:00Z

current version: 1.1

last update: 2020-08-07T23:00:00Z

### Blocks

### Documentation

Error occurred

Event is triggered when an error occurs…

error ~ String

Distance between

Returns the distance between two points in meters.Returns -1 if coordinates isn’t valid.

latA ~ int

lngA ~ int

latB ~ int

lngB ~ int

Is in radius

Returns true if a specific coordinates is in a specific radius.

targetLat ~ int

targetLng ~ int

positionLat ~ int

positionLng ~ int

Radius ~ int

### Usage example

That’s represents how far i am from london in meters ( can be easily converted to kilometres):

That represents if i’m in circle around london it’s radius 6000m:

### Download links

**AIA:** MyExtension (2).aia (8.8 KB)

**AIS:** MyExtension_Screen1 (1).ais (3.6 KB)

**APK:** MyExtension (1).apk (5.1 MB)

**AIX:** io.mohamed.AddressInfo.aix (7.4 KB)

Note: Extension my return error “coordinates couldn’t be equal to 0”…That’s due to the time the location sensor takes to get the address/coordinates…

### Credits

Thanks for every one who helped me developing this extension

If you have any improvements or there is any bug then please tell me…I’m going to update this extension when i have any new idea…

Mohamed Tamer