What solution to pick if you need maps?

  • 0
    Ps.S. everything further is planned to be implemented in JS, all APIs in JS

    Good time everyone, dear Khabarovsk residents)
    Which solution should I use if I need to connect to an application with maps, with the following capabilities:
    1) Add placemarks to the map (with coordinates or address in the city)
    2) You may have to draw the route.
    3) ... somehow interact with the cards (perspective for the future)

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

    I would safely link leaflets to OpenStreetMaps if I was sure they were capable of the tasks described above. It is very important to be able to create a route and add a label by address, as well as search by address.

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

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

  • 2 Answers
  • 0
    1) geocoding - coordinates at - https://wiki.openstreetmap.org/wiki/Nominatim

    2) routing engines - https://wiki.openstreetmap.org/wiki/Routing

    And while the OSM community provides these services for free, that doesn't mean you can sit around your 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.
    Lilly Curry

  • 0
    Leaflet in its pure form allows you to quickly display a map, the rest of the functionality will have to be improved. There are services and software for routing (brouter, osrm) for OSM, there are ready-made site implementations for adding all sorts of tags (for example, umap, but here you will most likely need to do your own according to the context). Unlike YaGoogles, there is no such thing that everything is in one place at once. But free and open.

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!