N
N
nepster-web2022-02-13 02:50:10
elasticsearch
nepster-web, 2022-02-13 02:50:10

How to normalize coordinates for ElasticSearch?

When indexing data, ElasticSearch spits out an error:

{"type":"illegal_argument_exception","reason":"illegal latitude value [129.77067] for coordinates"}}


He doesn't like data with coordinates like this:
"longitude" => "62.09325"
  "latitude" => "129.77067"


Coordinates exist: Yakutsk Airport: Tiganos: 62.09325°N 129.77067°
https://ceb.wikipedia.org/wiki/Yakutsk_Airport

Please tell me how to feed such coordinates to elastic?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
chupasaurus, 2022-02-13
@nepster-web

You confuse latitude and longitude, latitude modulo is not more than 90 °. And yes, the default coordinate pair is (latitude, longitude) .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question