User API

GeoUtil

Other API in Package

Web

Internal Tunnel

Internal Web

Tunnel

Method Summary
double calcDistances(PacketDataList list)

Adds a new column to the datalist called 'distance' and calculates the distance between the first row and the remaining rows.

double calcDistances(double lat, double lon, PacketDataList list)

Adds a new column to the datalist called 'distance' and calculates the distance between the initial provided coordinates and the row and returns the maximum distance.

Data getCenter(DataList list)

Returns a Data object containing latitude and longitude geo-coordinate of the approximate center of the list.

double getDistance(double lat1, double lon1, double lat2, double lon2)

Returns the distance between the two coordinates.

Data getEast(DataList list, double longitude)

Returns a Data object containing latitude and longitude of the Eastern most point of the list starting at the specified longitude.

double getLatitudeDistance(DataList list)

Returns the distance between the Northern-most and Southern-most points of the list

double getLongitudeDistance(DataList list)

Returns the distance between the Eastern-most and Western-most points of the list

Data getNorth(DataList list, double latitude)

Returns a Data object containing latitude and longitude of the Northern most point of the list starting at the specified latitude.

Data getSouth(DataList list, double latitude)

Returns a Data object containing latitude and longitude of the Southern most point of the list starting at the specified latitude.

Data getWest(DataList list, double longitude)

Returns a Data object containing latitude and longitude of the Western most point of the list starting at the specified longitude.

PacketDataList inject(DataList list, Data data)

Injects the data into the new list based on relative distance to other points on the list. Data must have latitude,longitude coordinates.

boolean isCoordinateInsidePath(double latitude, double longitude, DataList list)

Returns true if the specified coordinate is within the are of the specified path.

PacketDataList sort(DataList list)

Sorts the list by distance relative to each other and starting with the first row. Returns the new sorted list with two new columns- distance and sort.

  toMercator(PacketDataList list, int height, int width, int zoom)

Adds a Mercator projection of the list as x,y coordinates. The anticipated target is an image of given height and width.

String toString()

Returns a description of this object.

Method Detail


double calcDistances(PacketDataList list)

Adds a new column to the datalist called 'distance' and calculates the distance between the first row and the remaining rows.

Parameters:

Returns:  double

Since: 08-27-2019

top

double calcDistances(double lat, double lon, PacketDataList list)

Adds a new column to the datalist called 'distance' and calculates the distance between the initial provided coordinates and the row and returns the maximum distance.

Parameters:

  • double   lat
  • double   lon
  • PacketDataList   list Required parameter.

Returns:  double

Since: 08-27-2019

top

Data getCenter(DataList list)

Returns a Data object containing latitude and longitude geo-coordinate of the approximate center of the list.

Parameters:

Returns:  Data

Since: 08-27-2019

top

double getDistance(double lat1, double lon1, double lat2, double lon2)

Returns the distance between the two coordinates.

Parameters:

  • double   lat1
  • double   lon1
  • double   lat2
  • double   lon2

Returns:  double

Since: 08-27-2019

top

Data getEast(DataList list, double longitude)

Returns a Data object containing latitude and longitude of the Eastern most point of the list starting at the specified longitude.

Parameters:

  • DataList   list Required parameter.
  • double   longitude

Returns:  Data

Since: 08-27-2019

top

double getLatitudeDistance(DataList list)

Returns the distance between the Northern-most and Southern-most points of the list

Parameters:

Returns:  double

Since: 08-27-2019

top

double getLongitudeDistance(DataList list)

Returns the distance between the Eastern-most and Western-most points of the list

Parameters:

Returns:  double

Since: 08-27-2019

top

Data getNorth(DataList list, double latitude)

Returns a Data object containing latitude and longitude of the Northern most point of the list starting at the specified latitude.

Parameters:

  • DataList   list Required parameter.
  • double   latitude

Returns:  Data

Since: 08-27-2019

top

Data getSouth(DataList list, double latitude)

Returns a Data object containing latitude and longitude of the Southern most point of the list starting at the specified latitude.

Parameters:

  • DataList   list Required parameter.
  • double   latitude

Returns:  Data

Since: 08-27-2019

top

Data getWest(DataList list, double longitude)

Returns a Data object containing latitude and longitude of the Western most point of the list starting at the specified longitude.

Parameters:

  • DataList   list Required parameter.
  • double   longitude

Returns:  Data

Since: 08-27-2019

top

PacketDataList inject(DataList list, Data data)

Injects the data into the new list based on relative distance to other points on the list. Data must have latitude,longitude coordinates.

Parameters:

  • DataList   list Required parameter.
  • Data   data Required parameter.

Returns:  PacketDataList

Since: 08-27-2019

top

boolean isCoordinateInsidePath(double latitude, double longitude, DataList list)

Returns true if the specified coordinate is within the are of the specified path.

Parameters:

  • double   latitude
  • double   longitude
  • DataList   list Required parameter.

Returns:  boolean

Since: 08-27-2019

top

PacketDataList sort(DataList list)

Sorts the list by distance relative to each other and starting with the first row. Returns the new sorted list with two new columns- distance and sort.

Parameters:

Returns:  PacketDataList

Since: 08-27-2019

top

toMercator(PacketDataList list, int height, int width, int zoom)

Adds a Mercator projection of the list as x,y coordinates. The anticipated target is an image of given height and width.

Parameters:

  • PacketDataList   list Required parameter.
  • int   height
  • int   width
  • int   zoom Maximum allowed size of parameter: 12

Since: 08-27-2019

top

String toString()

Returns a description of this object.

Returns:  String

Since: 08-27-2019

top
Copyright © 2006 - 2024, ContractPal, Inc. All rights reserved. API Date: Dec 03, 2024 10:24 AM