A
A
Anton2019-07-27 17:02:40
JavaScript
Anton, 2019-07-27 17:02:40

How to get data to build a Google Maps polygon?

Please tell me what are the ways to get data to create a polygon on a Google Maps map. In the examples in the documentation, this is an array of objects, each representing a point with a latitude and longitude

var triangleCoords = [
    {lat: 25.774, lng: -80.190},
    {lat: 18.466, lng: -66.118},
    {lat: 32.321, lng: -64.757},
    {lat: 25.774, lng: -80.190}
  ];

What tools exist for obtaining such an array of data to create a polygon in any district of Moscow, for example, the Central Administrative District?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question