Examples of toGeocell()


Examples of edu.caltech.csn.geocell.converter.GeohashConv.toGeocell()

   */
  @Test
  public void testWanderWithGeohash() {
    final Converter<String> geohashConv = new GeohashConv();
    long geocell = GeocellLibrary.getGeocell(57.64911, 10.40744, 50);
    assertEquals(geohashConv.toGeocell("u4pruydqqv"), geocell);

    // Trot around San Francisco using geohashes.
    geocell = geohashConv.toGeocell("9q8yyj");
    assertEquals("9q8yyj", geohashConv.fromGeocell(geocell));
    geocell = GeocellLibrary.getEast(geocell);
View Full Code Here

Examples of edu.caltech.csn.geocell.converter.GeohashConv.toGeocell()

    final Converter<String> geohashConv = new GeohashConv();
    long geocell = GeocellLibrary.getGeocell(57.64911, 10.40744, 50);
    assertEquals(geohashConv.toGeocell("u4pruydqqv"), geocell);

    // Trot around San Francisco using geohashes.
    geocell = geohashConv.toGeocell("9q8yyj");
    assertEquals("9q8yyj", geohashConv.fromGeocell(geocell));
    geocell = GeocellLibrary.getEast(geocell);
    assertEquals("9q8yym", geohashConv.fromGeocell(geocell));
    geocell = GeocellLibrary.getEast(geocell);
    assertEquals("9q8yyt", geohashConv.fromGeocell(geocell));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.