Home > Back-end >  SDK program to calculate the distance can collapse DistanceUtil directly. The getDistance (start, en
SDK program to calculate the distance can collapse DistanceUtil directly. The getDistance (start, en

Time:01-19

LatLng desLatLng122=new LatLng (120.120645, 30.336687);
LatLng desLatLng123=new LatLng (120.115839, 30.338987);
LatLng start=new LatLng (Double the valueOf (desLatLng122. Longitude), Double. The valueOf (desLatLng122. Latitude));
LatLng end=new LatLng (Double the valueOf (desLatLng123. Longitude), Double. The valueOf (desLatLng123. Latitude));
Double distanse=DistanceUtil. GetDistance (start, end);
So by baidu map SDK program to calculate the distance will collapse directly, do you know

CodePudding user response:

I don't know
?

CodePudding user response:

What is the collapse of the error message? Or do you try catch it and see what is wrong