Class OverpassRequest

java.lang.Object
com.targomo.client.api.request.OverpassRequest

public class OverpassRequest extends Object
Find reachable openstreetmap pois with this class. Only accepts HttpMethod POST.
  • Constructor Details

    • OverpassRequest

      public OverpassRequest(TravelOptions travelOptions, javax.ws.rs.client.Client client, PoiType poiType)
      Use a custom client implementation with specified options and method and a specific PoI type
      Parameters:
      client - Client implementation to be used
      travelOptions - Options to be used
      poiType - the Point of Interest type used for the request
    • OverpassRequest

      public OverpassRequest(TravelOptions travelOptions, PoiType poiTye)
      Use default client implementation with specified options and method and a specific PoI type Default client uses ClientBuilder.
      Parameters:
      travelOptions - Options to be used
      poiTye - the Point of Interest type used for the request
    • OverpassRequest

      public OverpassRequest(javax.ws.rs.client.Client client, TravelOptions travelOptions)
      Use a custom client implementation with specified options and method Default PoI type is the first taken from the osmTypes in travel options
      Parameters:
      client - Client implementation to be used
      travelOptions - Options to be used
    • OverpassRequest

      public OverpassRequest(TravelOptions travelOptions)
      Use default client implementation with specified options and method Default client uses ClientBuilder. Default PoI type is the first taken from the osmTypes in travel options
      Parameters:
      travelOptions - Options to be used
  • Method Details