Package org.apache.lucene.spatial.geohash

Examples of org.apache.lucene.spatial.geohash.GeoHashUtils


    {
    TupleEntry argument = functionCall.getArguments();
    Double lat = argument.getDouble( 0 );
    Double lng = argument.getDouble( 1 );

    GeoHashUtils ghu = new GeoHashUtils();
    String geohash = ghu.encode( lat, lng );

    Tuple result = new Tuple();
    result.add( geohash.substring( 0, hash_length ) );
    functionCall.getOutputCollector().add( result );
    }
View Full Code Here

TOP

Related Classes of org.apache.lucene.spatial.geohash.GeoHashUtils

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.