Home > Article > Backend Development > javascript - Geographical coordinate generation code
I want to make a page that automatically generates Baidu map coordinates
It is necessary to generate a number of coordinate points within a certain longitude and latitude, and the distance between points cannot be less than a certain distance. How should
be written?
For example, enter a starting longitude and latitude, then enter the number of points, then enter the distance between points, and generate an array to print out.
You can use js or php. How to implement it? What is the logic?
I want to make a page that automatically generates Baidu map coordinates
It is necessary to generate a number of coordinate points within a certain longitude and latitude, and the distance between points cannot be less than a certain distance. How should
be written?
For example, enter a starting longitude and latitude, then enter the number of points, then enter the distance between points, and generate an array to print out.
You can use js or php. How to implement it? What is the logic?