Dear all, I ask this question for someone else (here in Chinese), The data is
Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input long stkcd int year str21(Jingwei1 Jingwei2)
2 2007 "114.068746,22.573589" "113.979272,22.562049"
2 2008 "114.068746,22.573589" "113.979272,22.562049"
2 2009 "114.068746,22.573589" "113.979272,22.562049"
2 2010 "114.068746,22.573589" "113.979272,22.562049"
2 2011 "114.068746,22.573589" "113.979272,22.562049"
2 2012 "114.068746,22.573589" "113.979272,22.562049"
2 2013 "114.068746,22.573589" "113.979272,22.562049"
2 2014 "114.068746,22.573589" "113.979272,22.562049"
2 2015 "114.068746,22.573589" "113.979272,22.562049"
2 2016 "114.068746,22.573589" "113.979272,22.562049"
2 2017 "114.068746,22.573589" "114.070184,22.552655"
2 2018 "114.068746,22.573589" "114.070184,22.552655"
2 2019 "114.068746,22.573589" "114.070184,22.552655"
2 2020 "114.068746,22.573589" "114.070184,22.552655"
4 2007 "114.054117,22.556835" "114.057334,22.54277"
4 2008 "114.054117,22.556835" "114.057334,22.54277"
4 2009 "114.054117,22.556835" "114.057334,22.54277"
4 2010 "114.054117,22.556835" "114.057334,22.54277"
4 2011 "114.054117,22.556835" "114.057334,22.54277"
4 2012 "114.054117,22.556835" "114.057334,22.54277"
end
The question is how to calculate the distance between `Jingwei1' (one address) and `Jingwei2' (the other address)? Thanks.