Friday, July 20, 2012

Google Map Exploration

台湾的一位好友爱好于Google Map上探险,功夫不负有心人,他某日在(39o49'32.56"N, 97o32'37.10"E)坐标之处发现异象(好奇者可在谷歌地图上查找“39 49 32.56N 97 32 37.10E”)
首先是无数小正方形物体(红色框)排列在一条条直线上,似乎是城墙或营地。还有一些梅花状的(橙色框),似乎是帐篷的基座。地面上有很多间距约为2.8米的车轮碾痕。正方形阵列的规模极大,貌似外星人的手笔。此处虽是戈壁沙漠,附近则有历史上顶顶大名的玉门关。据称玉门关是西汉通往西域的交通门户之一,亦是汉长城最重要的关隘。“丝绸之路”的南路和北路皆必经此关。于是朋友和我都认定这是古建筑的遗址。玉门的大小网站对此地皆无描述,如此规模的古迹竟不为世人所知岂不冤枉? 我们于是恨不得有双飞翼,去那一圆儿时的考古梦想。

在好奇心的折磨之下,我搜索到一位活跃在一个玉门贴吧的版主。版主是个年仅二十的大学生,玉门土生土长,当前在外地上大学。百度短信后QQ联络,发送卫星图片,询问能否帮忙去实地探险拍照。版主想必暑期还在外地,次日告知此处地貌远非卫星上看到的那样一马平川。有山有河阻挡在探险之路上,并发来许多照片为证。于此同时我发现在“古迹”东面是中国石油的地盘,版主其实是油田的子弟(他网上简介中提到自己上的是油田的中学)。

在以后的交流中版主并不苟同那会是古迹,反而认为“玉门的海拔很高,在战略上没有必要攻取或者防守这么一个地方,利用价值太少。”“ 我想到的是既然这个地方离我们石油河很近,应当是我们前辈们当年为了挖石油而修的营地,所以才能看的这么清楚。”仔细想想,我也认同他的解释。那些车轮印若说是古代的战车留下的痕迹的确是绝无可能的。既然是现代车辆的压痕,有些车痕还穿过“梅花营地”,说明“古迹”的高度很低,而且驾车者对这些“古迹”应当是司空见惯。方型的物体我猜想可能是仅是探油的油塔的基座。于是这次网络探险也就在此不了了之。

今晚又百度了一些玉门的网站才知道这原来是铁人王进喜的故乡(还以为王是大庆油田的,惭愧)。玉门油田辉煌时有十三万人口,那么几百口排列整齐的油井基座就不足为奇了。可如今石油资源枯竭, 九万居民弃城外迁,城中弃楼遍地、几成空城[1]。看到版主的照片时我也注意到一些崖底的山洞,却没有想到那些洞穴会是石油工人最早居住的地方,许多工人的儿女都是在洞里出生!现代人们对资源的无度开采后无奈的背井离乡比古迹在岁月消磨下的消失更让人唏嘘不已。

[1] http://news.cn.yahoo.com/newspic/news/9154/

Sunday, February 5, 2012

Some thoughts on smart phone GPS

I had a car accident two weeks ago. My car was hit from behind and the driver later denied everything. He first claimed he was not involved in any accident on that day. I provided a few photos I took with my smart phone; including one on his car and another on his insurance card (here is a thumbnail of the driver copying my insurance information).

This motivated me to take a careful look at the meta data contained
on those photos. Besides the date and time, we got the exact location of the accident, thanks to the build-in GPS. The photo meta data contains a GPS section, which reads like (37o49’11”N, 122o28’43”W). By converting this into a decimal format, we get a coordinate “37.8197,-122.4786”, where longitude need to be changed into negative to reflect the western hemisphere. Google Map understands “37.8197,-122.4786” as a valid search string. Since the phone automatically saved a copy of the photos onto the cloud, there is a third-party source that validates the photos.

The episode did not end here, as the driver later claimed there was no trace of impact on his car, implying the damages on my car were prior to the accident. This certainly has been a quite frustrating experience, as the claim processor was not willing to apply her common sense and the burden of proof fell onto my own shoulder. I then found a plate mark left on my bumper. Applying some Photoshop contrast and edge enhancement tools, I can tell these are letter marks left from the top of his license plate frame. Although it is too hard to read the letters, the contour should provide enough traces to be mapped onto his plate. The claim now moves forward.

This raises a hypothetical question - how can one actually prove a photo was indeed taken at that location and on that date? That is how to prove the meta data has not been manually altered? This leads to an idea that the mobile cloud provider might consider a timestamping service as described on this Wikipedia entry [1]. Presumably when the cloud storage receives a document, it calculates a short hash key (a fingerprint string). Then it sends the hash to a timestamping
authority (TSA) and obtains a string of “signed timestamp and hash” to be stored together with the photo. Now the photo can be trusted by court. The court verification process goes like this: it first verifies the string containing both hash and timestamp was indeed generated by the TSA (by decoding it with the TSA’s public key), which means the hash existed at the said date and time. Since the hash generation algorithm works in such a way that it is nearly impossible to find another document that can be mapped to the exact hash, this proves that the original document indeed existed on the said date and time. This is basically the same process used in many digital lab notebooks systems I happen to be familiar with, and such a document with its hash-and-timestamp string will stand up in court.

There are many interesting applications of GPS on smart phones. Putting privacy aside for the sake of discussion, the GPS data produced by smart phones, if accessible by law-enforcement authorities, may well help identify the other drivers at that time and location, who might be valuable witnesses of the accident. Sure that will be more justifiable for a crime instead of this small accident. In addition, if you ever wonder how Google Map obtains traffic data for local streets, the data also comes from our smart phone GPS[2]!

[1] http://en.wikipedia.org/wiki/File:Trusted_timestamping.gif
[2] http://googleblog.blogspot.com/2009/08/bright-side-of-sitting-in-traffic.html