Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我从yr.no 的 API获取有关月球高度的信息,他们将高度打印为50.0496753501172。
如何将其转换为公里;即使它已经以公里为单位?
altitude我在 API 响应(下)中看到的唯一内容是嵌套在<sun>元素下,而不是<moon>. 您链接到的 API 文档将其称为:
altitude
<sun>
<moon>
还给出了太阳正午时与太阳的角度。
所以这<noon altitude="50.0496753501172" />真正意味着,在中午,太阳将在地平线以上大约 50 度。而已。与月亮无关,与距离无关。
<noon altitude="50.0496753501172" />
我的 rails 应用程序正在生成以下错误(运行 rails 生成器或启动 WEBrick 时):
/home/lachlan/.gem/ruby/1.9.1/gems/activerecord-3.2.6/lib/active_record/dynamic_matchers.rb:50:in `method_