The script of the calculator for calculating the cost of on Yandex Maps for the site.
For the calculation, you must specify the point of departure and the point of destination. The built route is displayed on the map. The resulting distance and cost are displayed in a pop-up message.
Other calculators
http://mobile-island.narod.ru/_js/javascript-kaljkulyatory.html
= = = = = = = = = = Calculator Settings
- geographical coordinates of the map center;
- map scale;
- the height and width of the map in the style file.
- if necessary, set a fixed point of departure "from".
- price changes in the code.
= = = = = = = = = = Formulas and calculation parameters of the calculator
For the calculation, you must specify the cost per 1 kilometer and the minimum cost.
If the calculation result is less than the minimum cost, then the cost is equal to the minimum cost.
Total cost = distance, km * cost per 1 km.
= = = = = = = = = = Features of the calculator
- For Yandex. Maps to work, you need to get a free key in the Developer´s Dashboard:
https://developer.tech.yandex.ru/keys/
- The calculation is performed in real time, when you select or change the destination or departure.
- Clean and simple design
- Pure HTML5, CSS3, Javascript
- Does not require jQuery, PHP, MySQL
- The source code is properly formatted and commented
- Main supported browsers
- Easy to install, customize, and style
- Attached installation and configuration documentation
========= Description of the calculator files
● form.html -calculator form (startup file).
● script.js -calculator scripts.
● style. css-calculator styles.
● Instructions.doc-installation and configuration instructions.