Calculate distance between two coordinates (Online with Google)
This is the code for calculating distance, real, through a dedicated service from Google: [crayon-5df392ba7038c861130972/] Its strong point is the accuracy of the distance even if the service only works if online.
Calculate distance between two coordinates (Offline)
This is the function by giving the longitude and latitude of the departure and arrival, calculate the distance in kilometers. [crayon-5df392ba85810741720647/] Of course, this calculation is indicative, that is in linear form (air). But its strength is...
Search an element in array and delete it
We initialize an array of example: [crayon-5df392ba90c1e038485588/] Then start with search the elemen that i wanna delete into this array (I supposing didn’t know the index of element) [crayon-5df392ba90c37454103015/] Find the index, we complete...