Example usage for com.google.common.geometry S2LatLng lngDegrees

List of usage examples for com.google.common.geometry S2LatLng lngDegrees

Introduction

In this page you can find the example usage for com.google.common.geometry S2LatLng lngDegrees.

Prototype

public double lngDegrees() 

Source Link

Document

Returns the longitude of this point as degrees.

Usage

From source file:com.bc.geometry.s2.S2WKTWriter.java

private static void appendWktPoint(S2Point vertex, StringBuilder builder) {
    final S2LatLng latLng = new S2LatLng(vertex);
    builder.append(latLng.lngDegrees());
    builder.append(" ");
    builder.append(latLng.latDegrees());
}

From source file:com.bc.geometry.s2.S2WKTWriter.java

@SuppressWarnings("StringBufferReplaceableByString")
private static String writePointWkt(S2LatLng geometry) {
    final StringBuilder builder = new StringBuilder();
    builder.append("POINT(");
    builder.append(geometry.lngDegrees());
    builder.append(",");
    builder.append(geometry.latDegrees());
    builder.append(")");
    return builder.toString();
}

From source file:com.norman0406.slimgress.API.Common.Location.java

public LatLng getLatLng() {
    S2LatLng pos = S2LatLng.fromE6(latitude, longitude);
    return new LatLng(pos.latDegrees(), pos.lngDegrees());
}