S
S
SergeyKisliy2015-03-05 15:55:59
JavaScript
SergeyKisliy, 2015-03-05 15:55:59

Delivery cost calculator with Yandex maps or Google maps. How to limit the price to a certain area?

Hello.
There was a need to make a calculator for the cost of delivery of goods, with the integration of Yandex maps or Google maps. The main feature in it is to highlight our area (a small town) and if the user counts the delivery in this area, then the cost is always displayed as a fixed value. But as the final destination goes beyond the area, then there is already a recalculation for mileage.
Is it possible to do this with the help of the above services?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Novikov, 2015-03-06
@BOOMER_74

Yes, Yandex.Maps has the ability to build a route ( ymaps.route ) and check its intersection with the object . Naturally, you will need to build a polygon for your city (the borders of the delivery area).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question