T
T
t800zippygod2020-10-10 17:37:39
JavaScript
t800zippygod, 2020-10-10 17:37:39

What solution to choose if you need cards?

P.S. everything further is planned to be implemented in JS, all APIs in JS

Good time to all, dear Khabarovsk residents)
What solution to use if I need to connect maps to the application, with the following features:
1) Add marks to the map (with coordinates or at an address in the city)
2 ) You may have to draw the route
3) ... somehow interact with the maps (prospect for the future)

Yandex API imposes certain corporate responsibilities, including a fee (and you will most likely have to pay, because the project is planned to be large)

I would happily connect a leaflet to OpenStreetMaps if I was sure they were capable of doing the tasks described above. The ability to plot a route and add a label to an address, as well as search by address, is very important.

I asked this question because there is a lot of heterogeneous information on the Internet, and I did not find specifics on the problems that interest me.

I would be glad if someone experienced in this regard throws off code samples, how best to connect it, etc. Or at least share sources of literature.
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
freeExec, 2020-10-10
@t800zippygod

1) geocoding - coordinates at - https://wiki.openstreetmap.org/wiki/Nominatim
2) routing engines - https://wiki.openstreetmap.org/wiki/Routing
And although the OSM community provides these services for free, it is not means that you can sit on the neck. As soon as you start generating a noticeable load, you will be banned. Since it is assumed that you deploy these solutions on your hardware and support yourself. Or do not worry and pay Google / Yandex.

S
shurshur, 2020-10-10
@shurshur

Leaflet in its purest form allows you to quickly display the map, the rest of the functionality will have to be finalized. There are services and software for routing (brouter, osrm) via OSM, there are ready-made site implementations for adding all sorts of labels (for example, umap, but here, according to the context, you will most likely need to do your own). Unlike YaGoogle, there is no such thing as everything in one place at once. But it's free and open.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question