Package org.springframework.social.foursquare.api

Examples of org.springframework.social.foursquare.api.Location


      .andExpect(method(GET))
      .andRespond(withResponse(new ClassPathResource("testdata/venue.json", getClass()), responseHeaders));
   
    Venue venue = foursquare.venueOperations().getVenue("VENUE_ID");
    assertEquals("3fd66200f964a520dbe91ee3", venue.getId());
    Location location = venue.getLocation();
    assertNotNull(location);
    assertEquals("170 Thompson St", location.getAddress());
    assertEquals("btwn Bleecker & Houston", location.getCrossStreet());
    assertEquals("NY", location.getState());
    assertEquals("New York", location.getCity());
    assertEquals("10012", location.getPostalCode());
    assertEquals("USA", location.getCountry());
    assertEquals(40.7276468d, location.getLatitude(), 0d);
    assertEquals(-74.0002398, location.getLongitude(), 0d);
    mockServer.verify();
  }
View Full Code Here

TOP

Related Classes of org.springframework.social.foursquare.api.Location

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.