Home  >  Article  >  Backend Development  >  javascript - Geographical coordinate generation code

javascript - Geographical coordinate generation code

WBOY
WBOYOriginal
2016-09-15 11:31:011018browse

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?

Reply content:

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?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn