D
D
dezinger2013-02-28 21:32:40
iOS
dezinger, 2013-02-28 21:32:40

How to correctly match the user's current coordinates with the list of Russian and CIS regions from the database?

The first thing that comes to mind is geocoding by coordinates and getting the name of the region and comparing it with the existing database. Confuses that that it is comparison of lines.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
E
Egor Merkushev, 2013-03-01
@egormerkushev

Well, convert the strings to float or double there and compare ... Your confusion is incomprehensible. Show at least an example of the data that you have.

D
dezinger, 2013-03-01
@dezinger

You can also compare them by checksum, but this does not solve the problem that geocoding can give me a region in one spelling, but in the database I have a different form. Now, if the geocode code for the region's ISO returned, it would be possible to become attached to the iron.

D
dezinger, 2013-03-01
@dezinger

Of course, there are third-party services for example
https://github.com/InfiniteLoopDK/ILGeoNames/tree/master
but it seems like there is a limit of 15,000 requests per day for a free license.

D
dezinger, 2013-03-01
@dezinger

And Google's geocoding service limit is 2500 per day.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question