Package org.luwrain.io.api.osm
Class OsmApiService
java.lang.Object
org.luwrain.io.api.osm.OsmApiService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondirectGeocoding
(String addr) getElementById
(String type, long id) getNodesByAddress
(String city, String street, String housenumber) getNodesByIds
(List<Long> ids) getOSMEntityByCoordinate
(String type, Double latitude, Double longitude) getOSMEntityByName
(String type, String name) getWaysByStreet
(String streetName, String cityName) institutionOnCity
(String city, Map<String, String> amenity) publicTransportStopsOnStreet
(String city, String street) publicTransportStopsRouteInTheCity
(String city, int routeNumber) reverseGeocoding
(double lat, double lon)
-
Constructor Details
-
OsmApiService
public OsmApiService()
-
-
Method Details
-
getNodesByIds
- Throws:
IOException
-
getElementById
- Throws:
IOException
-
getNodesByAddress
public ArrayList<Node> getNodesByAddress(String city, String street, String housenumber) throws IOException - Throws:
IOException
-
getOSMEntityByCoordinate
public Element getOSMEntityByCoordinate(String type, Double latitude, Double longitude) throws IOException - Throws:
IOException
-
getOSMEntityByName
- Throws:
IOException
-
institutionOnStreet
public ArrayList<Node> institutionOnStreet(String city, String street, Map<String, String> amenity) throws IOException- Throws:
IOException
-
publicTransportStopsOnStreet
- Throws:
IOException
-
publicTransportStopsRouteInTheCity
public ArrayList<Node> publicTransportStopsRouteInTheCity(String city, int routeNumber) throws IOException - Throws:
IOException
-
publicTransportRoutesInTheCity
- Throws:
IOException
-
directGeocoding
- Throws:
IOException
-
reverseGeocoding
- Throws:
IOException
-
getWaysByStreet
- Throws:
IOException
-
institutionOnCity
public ArrayList<Node> institutionOnCity(String city, Map<String, String> amenity) throws IOException- Throws:
IOException
-