Skip to content

Instantly share code, notes, and snippets.

@Devaanandhan
Devaanandhan / gist:b5195d2167830d4a7f07645a97cad625
Created January 1, 2019 15:36
Calculating between two distance from database
Hi, i am doing a tour planner web based. I try using this formula but i am having problem because in google map when i test this two location, it shows 11 min but when i use this, it showing me 200+ hours. Please do need some assistance
Here is my example code :
a_lat = '3.159583';
a_lon = '101.717955';
b_lat = '3.160384';
b_lon = '101.736396';