Skip to content

Commit

Permalink
feat: edge weights in TopoJSON mode using less decimal places
Browse files Browse the repository at this point in the history
  • Loading branch information
takb committed Dec 17, 2024
1 parent 728cfc5 commit 9337878
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Builder;
import lombok.Getter;
import org.heigit.ors.api.responses.export.json.WeightSerializer;

import java.io.Serializable;
import java.util.List;
Expand All @@ -13,6 +15,7 @@
@Builder
public class Properties implements Serializable {
@JsonProperty("weight")
@JsonSerialize(using = WeightSerializer.class)
private Double weight;
@JsonProperty("osm_id")
private Long osmId;
Expand Down

0 comments on commit 9337878

Please sign in to comment.