Class GeocoderGoogleResource


  • @Path("/google")
    @ApplicationScoped
    @Produces("application/json")
    public class GeocoderGoogleResource
    extends Object
    • Field Detail

      • producerTemplate

        @Inject
        org.apache.camel.ProducerTemplate producerTemplate
      • googleApiKey

        String googleApiKey
    • Constructor Detail

      • GeocoderGoogleResource

        public GeocoderGoogleResource()
    • Method Detail

      • getByCurrentLocation

        @GET
        public com.google.maps.model.GeocodingResult[] getByCurrentLocation()
      • getByAddress

        @Path("address/{address}")
        @GET
        public com.google.maps.model.GeocodingResult[] getByAddress​(@PathParam("address")
                                                                    String address)
      • getByCoordinate

        @Path("lat/{lat}/lon/{lon}")
        @GET
        public com.google.maps.model.GeocodingResult[] getByCoordinate​(@PathParam("lat")
                                                                       String latitude,
                                                                       @PathParam("lon")
                                                                       String longitude)