Marker calculate set point to point

hi everyone I am new in the forum, I would like to request a consultation to be able to set two markers in google maps ionic native and to be able to calculate the difference between the two points tapping on polyline? do I have an external device that sends latitude longitude and hours minutes seconds and tenth cents thousandths?