R
R
RapFM2018-07-15 22:38:18
Search Engine Optimization
RapFM, 2018-07-15 22:38:18

How to do a search on the site according to the available data and the Yandex map?

Good day everyone.
The question is the following. We have a collection of commercial properties on our website. You need to do a search on them so that they are separated by districts and streets.
For example, in our database there is an object Moscow, SEAD, st. Sudakov house 6 and Moscow, VAO, st. Volgogradsky Prospekt, house 31. There is a search panel where people write search criteria, for example, SEAD 35 sq.m2. up to 100,000 rubles. Accordingly, he is given a result with Sudakov's address.
I watched how this is done on sites with a map - where all the houses have their own coordinates, maybe separately upload the coordinates to the database and assign them to each object?
And the second question, how can I implement a search on the map? that is, select the desired area by putting 4 points and so that in this area there is a search for the objects we have.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2018-07-16
@webinar

Everything that you want is done by means of api Yandex maps. Select the desired area, etc. In the same api there is a description of how objects are formed and placed on the map. Accordingly, store the information of your objects in the same form in the database, mirroring the desired json. In addition, other tables store object parameters, such as district, footage, etc. Accordingly, by making an array of objects for the map, you supplement the query with the filters that the user entered. This is usually in the form of a filter. It will be problematic to parse the string in order to guess what the user had in the viu, but it is possible.
I don’t understand how you planned to do something without coordinates?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question