-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes.txt
32 lines (23 loc) · 792 Bytes
/
notes.txt
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
def set_trace():
import pdb, sys
sys.stdout = sys.__stdout__
sys.stdin = sys.__stdin__
debugger = pdb.Pdb()
debugger.set_trace(sys._getframe().f_back)
#set_trace()
git clone [email protected]:tookThisHere.git
find 10 nearby
SELECT * FROM loc WHERE geohash < current_geohash
ORDER BY geohash DESC
LIMIT 5
CCCCA
CCCCB
CCCCC (>= loc, ASC) (<= loc, DESC)
CCCCD
CCCCE
--and then the reverse
locdata["Placemark"][0]["Point"]["coordinates"]
gh = geohash.Geohash((t[0], t[1]))
http://maps.google.com/maps/geo?q=98004&output=json&sensor=false&key=ABQIAAAAGGMJIuUzby07NUrR7mallhRzMbK_vc1IJzc6XHaFszlH54JBnhSVeGU5h8-LsX0JY8fEk5y5pYPqbw
http://tookthishere.appspot.com gmaps api key
ABQIAAAAGGMJIuUzby07NUrR7mallhTO5SMOnbNMld8-9ly8A2W2BJna7hTVMeUv5o1lc66IuTbSqr-ctvoUKg