added check for elevation
This commit is contained in:
parent
0c99915e9b
commit
5197998c7e
1 changed files with 3 additions and 0 deletions
|
@ -309,6 +309,9 @@ public class MeasurementEditingContext {
|
|||
public void onRouteCalculated(List<Location> locations) {
|
||||
ArrayList<WptPt> pts = new ArrayList<>(locations.size());
|
||||
for (Location loc : locations) {
|
||||
if(!loc.hasAltitude()){
|
||||
continue;
|
||||
}
|
||||
WptPt pt = new WptPt();
|
||||
pt.lat = loc.getLatitude();
|
||||
pt.lon = loc.getLongitude();
|
||||
|
|
Loading…
Reference in a new issue