コード例 #1
0
 @Test
 public void testGeographicPoiListGet() throws ApiException, IOException {
   PoiApi api = getPoiApi();
   PoiResponse poiResponse =
       api.geographicPoiListGet(
           null, null, null, null, null, null, null, null, null, null, null, null, null, null,
           null, null, null, null, null, null, null, null, null, null, null, null, null, null);
   System.out.println(poiResponse.toString());
 }
コード例 #2
0
  @Test
  public void testGeographicPoiListGetWithParameters() throws ApiException, IOException {
    PoiApi api = getPoiApi();
    double lat = 47.219510;
    double lng = -1.553694;
    double radius = 1000;

    PoiResponse poiResponse =
        api.geographicPoiListGet(
            lat, lng, radius, null, null, null, null, null, null, null, null, null, null, null,
            null, null, null, null, null, null, null, null, null, null, null, null, null, null);
    System.out.println(poiResponse.toString());
  }
コード例 #3
0
  @Test
  public void testGeographicPoiListGetWithFilter() throws ApiException, IOException {
    PoiApi api = getPoiApi();
    double lat = 47.219510;
    double lng = -1.553694;
    double radius = 1000;
    List<String> filter = new ArrayList<String>();
    // filter.add("OUEST INFO");
    // filter.add("RHUMS ET COCKTAILS");
    filter.add("LES SENTIERS DE DAKAR");

    PoiResponse poiResponse =
        api.geographicPoiListGet(
            lat, lng, radius, null, null, null, null, filter, null, null, null, null, null, null,
            null, null, null, null, null, null, null, null, null, null, null, null, null, null);
    System.out.println(poiResponse.toString());
  }