搜索场地时地理坐标无效 [英] Invalid geo coordinates when searching for venues

查看:72
本文介绍了搜索场地时地理坐标无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当搜索场所(意图浏览,提供西南和东北)时,出现以下错误:

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


无效的地理坐标( 0.400000,0.000000)

Invalid geo coordinates (0.400000,0.000000)

这些坐标有什么问题?我认为纬度应该在-90到+90范围内,经度应该在-180到+180范围内...

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

推荐答案

这是预期的行为。绝大多数情况下,人们以纬度/经度坐标向我们发送0.00,这是由于某些编程错误/错误,例如带有未初始化的变量。

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.

因此,我们返回一个错误,因此更容易发现错误,而不是默默地返回几乎没有结果。如果您发送0.00001,它将被视为完全有效,并且实际上指的是同一位置。

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.

这篇关于搜索场地时地理坐标无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆