I
I
Ivan Grebnev2021-08-29 14:37:45
Android
Ivan Grebnev, 2021-08-29 14:37:45

How to link a map to a mobile application in Java?

I am creating a mobile application in Android Studio in Java, a kind of city tour. To do this, I need to add a map by getting the API. I tried 2gis, they didn’t give me a key, google maps needs payment, Yandex Maps didn’t respond to the request. I recently learned that there are open street maps, whose api can be easily connected to the project. But for 3 days I can not find information on how to do this. What do you need to download, how to set up the development environment and what code to write to add api to the project?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Arty_Fact, 2021-08-29
@Arty_Fact

https://github.com/westnordost/osmapi

S
shurshur, 2021-08-29
@shurshur

For example, Mapbox SDK up to 25K users per month is free. Well, in general, look here for an initial acquaintance with the issue.
In addition, you can just directly use the tile servers of various OSM renderers , but you need to understand that they may have a usage policy, for example, the renderer on the main page of the official site has this , so for an actively used application it is better to contact commercial vendors or even do the rendering of the desired territory on your own (for the territory of one city, this will require not so many resources).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question