[英]Get Higher Precision from GGMAP
I have the following code. 我有以下代码。
library(ggmap)
x = geocode("641123",output='all')
x$results[[1]]$geometry$location$lat
shows 55.62943. 显示55.62943。
If i query 如果我查询
http://maps.googleapis.com/maps/api/geocode/json?address=641123&sensor=false
The lat shown is 55.62942899999999. 所示的纬度为55.62942899999999。
I need higher precision, it there a way to get the missing decimal place ? 我需要更高的精度,有没有办法得到丢失的小数位?
Thanks. 谢谢。
It's there, the printing is just clipping it. 就在那里,打印只是剪裁它。 Use
format
among other things to see the entire value... 使用
format
等来查看整个价值......
library(ggmap)
x = geocode("641123",output='all')
> format(x$results[[1]]$geometry$location$lat, digits=20)
[1] "55.629428999999988"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.