public class ResultSet extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ResultSet.RangeSet |
Modifier and Type | Field and Description |
---|---|
Map<String,Histogram> |
histograms
One histogram for each category of destination points in the target pointset.
|
String |
id
An identifier consisting of the ids for the pointset and time surface that were combined.
|
IsochroneData[] |
isochrones
Isochrone geometries around the origin, may be null.
|
int[] |
times
Times to reach every feature, may be null
|
Constructor and Description |
---|
ResultSet() |
ResultSet(int[] times,
PointSet targets,
boolean includeTimes,
boolean includeHistograms,
boolean includeIsochrones)
Build a new ResultSet directly from times at point features, optionally including histograms or interpolating isochrones
|
ResultSet(SampleSet samples,
TimeSurface surface)
Build a new ResultSet by evaluating the given TimeSurface at all the given sample points, not including times.
|
ResultSet(SampleSet samples,
TimeSurface surface,
boolean includeTimes,
boolean includeIsochrones)
Build a new ResultSet by evaluating the given TimeSurface at all the given sample points, optionally including times.
|
ResultSet(TimeSurface surface)
Build a new ResultSet that contains only isochrones, built by accumulating the times at all street vertices
into a regular grid without an intermediate pointSet.
|
Modifier and Type | Method and Description |
---|---|
protected void |
buildHistograms(int[] times,
PointSet targets)
Given an array of travel times to reach each point in the supplied pointset, make a histogram of
travel times to reach each separate category of points (i.e.
|
long |
sum(Integer timeLimit,
String... categories)
Sum the values of the specified categories up to the time limit specified
(in seconds).
|
long |
sum(String... categories)
Sum the values of specified categories at all time limits within the
bounds of the search.
|
void |
writeIsochrones(com.fasterxml.jackson.core.JsonGenerator jgen)
Write the isochrones as GeoJSON
|
void |
writeJson(OutputStream output)
Serialize this ResultSet to the given output stream as a JSON document, when the pointset is not available.
|
void |
writeJson(OutputStream output,
PointSet ps)
Serialize this ResultSet to the given output stream as a JSON document.
|
public String id
public Map<String,Histogram> histograms
public int[] times
public IsochroneData[] isochrones
public ResultSet()
public ResultSet(SampleSet samples, TimeSurface surface)
public ResultSet(SampleSet samples, TimeSurface surface, boolean includeTimes, boolean includeIsochrones)
public ResultSet(TimeSurface surface)
public ResultSet(int[] times, PointSet targets, boolean includeTimes, boolean includeHistograms, boolean includeIsochrones)
protected void buildHistograms(int[] times, PointSet targets)
public long sum(String... categories)
public long sum(Integer timeLimit, String... categories)
public void writeJson(OutputStream output)
public void writeJson(OutputStream output, PointSet ps)
public void writeIsochrones(com.fasterxml.jackson.core.JsonGenerator jgen) throws IOException
IOException
Copyright © 2018. All rights reserved.