LaserProfile { @NonNull public String locationString() { if (lat != null && lng != null && alt != null) { return LatLngAlt.formatLatLngAlt(lat, lng, alt); } else { return ""; } } LaserProfile(
            @NonNull String laser_id,
            @Nullable String user_id,
            String name,
            boolean isPublic,
            @Nullable Double alt, @Nullable Double lat, @Nullable Double lng,
            @NonNull String source,
            List<LaserMeasurement> points
    ); @NonNull String locationString(); boolean isLocal(); @Override boolean equals(Object obj); @NonNull @Override String toString(); @NonNull
    public String laser_id; @Nullable
    public String user_id; public String name; @SerializedName("public")
    public boolean isPublic; @Nullable
    public Double alt; @Nullable
    public Double lat; @Nullable
    public Double lng; @Nullable
    public Place place; @Keep
    @NonNull
    public String source; public List<LaserMeasurement> points; }
@Test public void locationString() { Convert.metric = false; assertEquals("47.24, -123.14, 0 ft", laser.locationString()); }