Invalid geo coordinates when searching for venues

2019-03-03 03:33发布

when searching for venues (intent "browse", southwest and northeast provided) I receive the following error:

Invalid geo coordinates (0.400000,0.000000)

What's wrong with these coordinates? I thought latitude is supposed to be in the range -90 to +90 and longitude in the range -180 to +180 ...

Any help is appreciated! Thanks, Carl

2条回答
看我几分像从前
2楼-- · 2019-03-03 04:23

Since your coordinates are even not assigned to a country, this coordinates are not valid. Try using coordinates on dry land.

查看更多
够拽才男人
3楼-- · 2019-03-03 04:33

This is intended behavior. The vast majority of cases where people send us 0.00 as a lat/long coordinate, it's because of some programming error/mistake, with an uninitialized variable, for example.

So, we return an error, so it's easier to find the mistake, rather than silently returning little-to-no results. If you send 0.00001, it will be treated as perfectly valid, and refer to essentially the same location.

查看更多
登录 后发表回答