Package org.apache.unomi.geonames.rest
Class GeonamesEndPoint
- java.lang.Object
-
- org.apache.unomi.geonames.rest.GeonamesEndPoint
-
@Produces("application/json;charset=UTF-8") @Path("/geonames") public class GeonamesEndPoint extends Object
-
-
Constructor Summary
Constructors Constructor Description GeonamesEndPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<GeonameEntry>
getCapitalEntries(String id, String language)
PartialList<GeonameEntry>
getChildrenCities(List<javax.ws.rs.core.PathSegment> items, String language)
PartialList<GeonameEntry>
getChildrenEntries(List<javax.ws.rs.core.PathSegment> items, String language)
List<GeonameEntry>
getHierarchy(String id, String language)
List<GeonameEntry>
reverseGeoCode(String latlon, String language)
void
setGeonamesService(GeonamesService geonamesService)
-
-
-
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)
-
-