@Path(value="/nomination") @ApplicationScoped public class GeocoderNominationResource extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) org.apache.camel.ProducerTemplate |
producerTemplate |
| Constructor and Description |
|---|
GeocoderNominationResource() |
| Modifier and Type | Method and Description |
|---|---|
GeocoderResult |
getByCoordinate(String latitude,
String longitude) |
GeocoderResult |
getByCurrentLocation(String address) |
@Path(value="address/{address}")
@GET
@Produces(value="application/json")
public GeocoderResult getByCurrentLocation(@PathParam(value="address")
String address)
@Path(value="lat/{lat}/lon/{lon}")
@GET
@Produces(value="application/json")
public GeocoderResult getByCoordinate(@PathParam(value="lat")
String latitude,
@PathParam(value="lon")
String longitude)
Copyright © 2019–2020 The Apache Software Foundation. All rights reserved.