@Path(value="/google") @ApplicationScoped @Produces(value="application/json") public class GeocoderGoogleResource extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) String |
googleApiKey |
(package private) org.apache.camel.ProducerTemplate |
producerTemplate |
| Constructor and Description |
|---|
GeocoderGoogleResource() |
| Modifier and Type | Method and Description |
|---|---|
com.google.maps.model.GeocodingResult[] |
getByAddress(String address) |
com.google.maps.model.GeocodingResult[] |
getByCoordinate(String latitude,
String longitude) |
com.google.maps.model.GeocodingResult[] |
getByCurrentLocation() |
@Inject org.apache.camel.ProducerTemplate producerTemplate
String googleApiKey
@GET public com.google.maps.model.GeocodingResult[] getByCurrentLocation()
@Path(value="address/{address}")
@GET
public com.google.maps.model.GeocodingResult[] getByAddress(@PathParam(value="address")
String address)
Copyright © 2019–2020 The Apache Software Foundation. All rights reserved.