All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.commons.api.query.geo.LatLng Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.commons.api.query.geo;

import org.infinispan.protostream.GeneratedSchema;
import org.infinispan.protostream.annotations.Proto;
import org.infinispan.protostream.annotations.ProtoSchema;
import org.infinispan.protostream.annotations.ProtoSyntax;

/**
 * A point in the geocentric coordinate system.
 * Providing a Proto Schema compatible with Google API latlng.proto.
 *
 * @see Google API
 * @since 15.1
 */
@Proto
public record LatLng(double latitude, double longitude) {

   public static LatLng of(double latitude, double longitude) {
      return new LatLng(latitude, longitude);
   }

   @ProtoSchema(
         includeClasses = {LatLng.class},
         schemaFileName = "latlng.proto",
         schemaPackageName = "google.type",
         syntax = ProtoSyntax.PROTO3
   )
   public interface LatLngSchema extends GeneratedSchema {
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy