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.2
last update: 2020-12-21T00:00:00Z
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..
thank you for your contribution…
I only have some minor naming conventions remarks…
Please follow the naming conventions, which is UpperCamelCase for property, method and event names (i.e. the first letter should be a capital letter) and lowerCamelCase for parameter names, no underscores .
Which means in your case, you should write targetLat rather than targetlat, same for targetLng, positionLat, positionLng
there also is a spelling error for DistanceBetween and ErrorOccurred
i have a button.
i have a school.
i want the button only visible when my position is in 50 radius of my school. How to set the block with your extension?
, you must have your school coordinates( latitude and longitude).. , grab IsInRadius block from the extension.. , set the target lat and lng to the coordinates of your school.. ,Set the position lat and lng to the coordinates ( it’s latitude and longitude) of the device..You can get it using location sensor component.. , set the radius to 50.. Note that the radius is in meters so if you want 50 km then set it to 50000.. , You are done!