V
V
VictoriaSh2013-11-21 23:55:15
Database design
VictoriaSh, 2013-11-21 23:55:15

How can I do a quick search for matches of parts of Google routes and what is the best way to store them?

There are a large number of routes.
Each of them, in addition to endpoints, can have intermediate ones.
How can I do a quick search for matches of parts of routes and how best to store them?
For example, you need to find a match on the route from Khimki to Zhulebino on the eastern side of the Moscow Ring Road with the route passing along part of the eastern part of the Moscow Ring Road.
As an option, you can store all route points after several kilometers in a table with the fields "trip_id", "lat", "lng" and consider routes that have two similar points to be the same. But with a large number of routes and requests, the search can take a long time and load the database.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2013-11-22
@ScorpLeX

Well, as a simple option, break it down into zones, look at which zones the route falls into and compare with the routes in these zones.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question