Class GeonamesEndPoint


  • @Produces("application/json;charset=UTF-8")
    @Path("/geonames")
    public class GeonamesEndPoint
    extends Object
    • Constructor Detail

      • GeonamesEndPoint

        public GeonamesEndPoint()
    • Method Detail

      • setGeonamesService

        public void setGeonamesService​(GeonamesService geonamesService)
      • reverseGeoCode

        @GET
        @Path("/reverseGeoCode/{latlon}")
        public List<GeonameEntry> reverseGeoCode​(@PathParam("latlon")
                                                 String latlon,
                                                 @HeaderParam("Accept-Language")
                                                 String language)
      • getChildrenEntries

        @GET
        @Path("/entries/{items:.*}")
        public PartialList<GeonameEntry> getChildrenEntries​(@PathParam("items")
                                                            List<javax.ws.rs.core.PathSegment> items,
                                                            @HeaderParam("Accept-Language")
                                                            String language)
      • getChildrenCities

        @GET
        @Path("/cities/{items:.*}")
        public PartialList<GeonameEntry> getChildrenCities​(@PathParam("items")
                                                           List<javax.ws.rs.core.PathSegment> items,
                                                           @HeaderParam("Accept-Language")
                                                           String language)
      • getHierarchy

        @GET
        @Path("/hierarchy/{id}")
        public List<GeonameEntry> getHierarchy​(@PathParam("id")
                                               String id,
                                               @HeaderParam("Accept-Language")
                                               String language)
      • getCapitalEntries

        @GET
        @Path("/capitals/{id}")
        public List<GeonameEntry> getCapitalEntries​(@PathParam("id")
                                                    String id,
                                                    @HeaderParam("Accept-Language")
                                                    String language)