Skip to content

provide center lat long and get the 4 lat long of the side given as input of the square.

Notifications You must be signed in to change notification settings

mantlelabs/latlng_distant_corners

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

latlng_distant_corners

Python Library Required:-

  1. math
  2. sys

Input:-
The python code Center_to_corners.py will compute the four corner cordinates of a square around the provided lat long. The square will be such that provided lat long will lie in center and the distance provided will be the sides of the square. Output is 4 lat long pairs that represent top-right, bottom-right, bottom-left and top-left corners.

Syntax:-
python Center_to_corners.py distance_in_metres latitude longitude

where,
distance_in_metres is Side of the square around the center in metres;
Latitude of center in degree;
Longitude of center in degree;

Output:-
Latitude and longitude for all 4 corner points of the square.

Example:-

sample run
python Center_to_corners.py 3000 47.1009358604 5.0074005580839795

About

provide center lat long and get the 4 lat long of the side given as input of the square.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages