1.1.0 • Published 5 years ago
coordinate-drawer v1.1.0
coordinate-drawer
Version 1.0.4
Creator of coordinates for a square/rectangle base figure, returns and/or displays the four corners with their own coordinate numbers given height and width in kilometers.
Main methods
newLatitude
params
response
Returns latitude in float format with 6 decimal places.
newLongitude
params
response
Returns longitude in float format with 6 decimal places.
calculateCoordinatesCorner
params
options:
- northWest
- northEast
- southEast
- southWest
- all
response
Returns lat/long in float format with 6 decimal places depending on the corner (quadrant) selected.
getDistance
params
- latitude(1) string
- longitude(1) string
- latitude(2) string
- longitude(2) string
- distanceUnit string (kilometers by default)
response
Returns distance in kilometers by default, but can choose between kilometers, meters, nauticalMiles and miles.