Ticket #21: mod_search.patch

File mod_search.patch, 501 bytes (added by nyall@…, 15 years ago)

Patch for mod_search.py

Line 
1187c187,198
2< sufix = " near %f,%f" % (lat,lon)
3---
4> # Google api does not like negative latitudes, so convert numeric lat/long to
5> # xxxxxN, xxxxxE type format instead
6> if lat < 0:
7> latstring = str(-lat) + "S"
8> else :
9> latstring = str(lat) + "N"
10> if lon < 0:
11> lonstring = str(-lon) + "W"
12> else :
13> lonstring = str(lon) + "E"
14>
15> sufix = " near %s,%s" % (latstring,lonstring)
16