v2x-client
| java.lang.Object | |
| ↳ | com.commsignia.v2x.utils.SpatialUtilities |
Spatial utilities for common operations.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | EARTH_RADIUS | Earth radius in meters | |||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static double |
bearing(double lat1, double lon1, double lat2, double lon2)
Calculate bearing from two latitude and longitude values
| ||||||||||
| static double |
distanceBetweenPoints(double latitude1, double longitude1, double latitude2, double longitude2)
Calculate distance between points using the haversine formula
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Earth radius in meters
Calculate bearing from two latitude and longitude values
| lat1 | First latitude |
|---|---|
| lon1 | First longitude |
| lat2 | Second latitude |
| lon2 | Second longitude |
Calculate distance between points using the haversine formula
| latitude1 | First latitude |
|---|---|
| longitude1 | First longtiude |
| latitude2 | Second latitude |
| longitude2 | Second longitude |