1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
table_create Users TABLE_HASH_KEY ShortText
[[0,0.0,0.0],true]
column_create Users location COLUMN_SCALAR WGS84GeoPoint
[[0,0.0,0.0],true]
column_create Users distance_from_tokyo_tocho COLUMN_SCALAR UInt32
[[0,0.0,0.0],true]
load --table Users --each 'distance_from_tokyo_tocho = geo_distance(location, "128481998x502890001")'
[
["_key", "location"],
["yurakucho", "128429532x503148672"],
["asagaya", "128536272x502686360"]
]
[[0,0.0,0.0],2]
select Users
[
[
0,
0.0,
0.0
],
[
[
[
2
],
[
[
"_id",
"UInt32"
],
[
"_key",
"ShortText"
],
[
"distance_from_tokyo_tocho",
"UInt32"
],
[
"location",
"WGS84GeoPoint"
]
],
[
1,
"yurakucho",
6674,
"128429532x503148672"
],
[
2,
"asagaya",
5364,
"128536272x502686360"
]
]
]
]
|