O
O
Oleg2016-08-25 15:49:12
Ruby on Rails
Oleg, 2016-08-25 15:49:12

How to determine the city by coordinates?

Is it possible to determine the city by known coordinates?
For example, there is a coordinate: 37.748450, -122.457172
Now you need to find out the name of the city without using external services such as Google / Yandex.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
Tirael78, 2016-08-25
@mayken

Even when using external systems, it is a difficult task to accurately recognize the city (there will be errors).
If you want to solve the problem yourself, then the only way out is to independently describe the boundaries of the cities you need and solve the problem of entering a point into a polygon.
In general, solving the problem of accurately determining a city by a point is quite complicated, and will require both external resources and their own improvement, because the boundaries change and there are conventions, something de jure is considered a suburb, and people consider it part of the city.

A
Artem Gribkov, 2016-08-25
@L1Qu0R

https://tech.yandex.ru/maps/doc/geocoder/desc/conc...
look at the geocoder from Yandex, it seems like there is a reverse decoding (from coordinates to location)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question