Skip to content
Advertisement

Receiving Infinity Infinity in LineString

I am try get linestring so I can measure the distance and time. Here in this linestring I am getting nan distance and time. Also, pleased to hear any of your suggestion on my code or logic. Thanks data:

JavaScript

Code:

JavaScript

Output: enter image description here

Advertisement

Answer

Probably, previous pyproj EPSG was switching the opposite interpretation. So I change the EPSG code with below:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement