I
I
Igor2019-05-29 09:12:46
2GIS
Igor, 2019-05-29 09:12:46

How to find the administrative district and district by coordinates?

It is necessary to find the administrative district and district by coordinates through 2GIS.
I have included the API.

<script src="https://maps.api.2gis.ru/2.0/loader.js?pkg=full"></script>

Next, I try to find a geopoint in order to determine the administrative district and district through its properties. I took the code for the test from the examples of 2GIS itself:
DG.then(function () {
  var moscow = new DG.GeoPoint(37.617634, 55.755787);
})

I get an error: "TypeError: DG.GeoPoint is not a constructor"
What's wrong? And how to find the administrative district and district?...

Answer the question

In order to leave comments, you need to log in

Similar questions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question