@Path(value="/routers/{routerId}/geocode")
@Produces(value="application/json")
public class GeocoderResource
extends Object
| Constructor and Description |
|---|
GeocoderResource(OTPServer otpServer,
String routerId) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
textSearch(String query,
boolean autocomplete,
boolean stops,
boolean clusters,
boolean corners)
Geocode using data using the OTP graph for stops, clusters and street names
|
@GET
public javax.ws.rs.core.Response textSearch(@QueryParam(value="query")
String query,
@QueryParam(value="autocomplete") @DefaultValue(value="false")
boolean autocomplete,
@QueryParam(value="stops") @DefaultValue(value="true")
boolean stops,
@QueryParam(value="clusters") @DefaultValue(value="false")
boolean clusters,
@QueryParam(value="corners") @DefaultValue(value="true")
boolean corners)
query - The query string we want to geocodeautocomplete - Whether we should use the query string to do a prefix matchstops - Search for stops, either by name or stop codeclusters - Search for clusters by their namecorners - Search for street corners using at least one of the street namesCopyright © 2019. All rights reserved.