public class MatcherServer extends AbstractServer
AbstractServer
that performs map matching; and is configurable with a properties file. It
can be customized to use arbitrary input and output formats by inheriting and customizing
MatcherServer.InputFormatter
and MatcherServer.OutputFormatter
classes.Modifier and Type | Class and Description |
---|---|
static class |
MatcherServer.DebugJSONOutputFormatter
Output formatter for writing extensive format of input and output of map matching in a JSON
response message.
|
static class |
MatcherServer.GeoJSONOutputFormatter
Output formatter for writing the geometries of a map matched paths into GeoJSON response
message.
|
static class |
MatcherServer.InputFormatter
Default input formatter for reading a JSON array of
MatcherSample objects as input
for map matching. |
static class |
MatcherServer.OutputFormatter
Default output formatter for writing the JSON representation of a
KState object with
map matching of the input into a response message. |
static class |
MatcherServer.SlimJSONOutputFormatter
Output formatter for writing map matched positions, represented be road id and fraction, and
the geometry of the routes into a JSON response message.
|
AbstractServer.ResponseFactory, AbstractServer.ResponseHandler, AbstractServer.RESULT
Constructor and Description |
---|
MatcherServer(Properties properties,
RoadMap map,
MatcherServer.InputFormatter input,
MatcherServer.OutputFormatter output)
Creates a
MatcherServer object as stand-alone offline map matching server. |
Modifier and Type | Method and Description |
---|---|
RoadMap |
getMap()
Gets
RoadMap object of the server. |
getMaxConnectionCount, getMaxRequestTime, getMaxResponseTime, getPortNumber, getResponseFactory, runServer, stopServer
public MatcherServer(Properties properties, RoadMap map, MatcherServer.InputFormatter input, MatcherServer.OutputFormatter output)
MatcherServer
object as stand-alone offline map matching server. The
provided Properties
object may provide the following properties:
AbstractServer.AbstractServer(Properties, ResponseFactory)
Matcher.setMaxRadius(double)
)Matcher.setMaxDistance(double)
)Matcher.setLambda(double)
)Matcher.setSigma(double)
)properties
- Properties
object with (optional) server and matcher settings.map
- RoadMap
object with the map to be matched with.input
- MatcherServer.InputFormatter
object for input formatting.output
- MatcherServer.OutputFormatter
object for output formatting.Copyright © 2016. All rights reserved.