A
A
AleAleA2018-04-07 20:59:41
Android
AleAleA, 2018-04-07 20:59:41

How to convert new CameraPosition(new Point(0, 0), 10.0f, 0, 0)) to GPS coordinates?

Good evening, there is a question, how can you convert , where new Point(0, 0) is latitude and longitude, into the GPS coordinates of your location? All this applies to Yandex MapKit. From the MapKit example given, it follows:new CameraPosition(new Point(0, 0), 10.0f, 0, 0))

private final Point TARGET_LOCATION = new Point(59.945933, 30.320045);
 mapView.getMap().move(
                new CameraPosition(TARGET_LOCATION, 14.0f, 0.0f, 0.0f),
                new Animation(Animation.Type.SMOOTH, 5),
                null);

In this case, TARGET_LOCATION is clearly defined, I would like to put the GPS coordinates of my location instead of TARGET_LOCATION, which, of course, change.
How can this be done?
Yandex MapKit libraries did not answer the question

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