Browse files

Webapp default search is now on world places

  • Loading branch information...
1 parent ba9e013 commit 2b35639f011cb038949bd330387fecfe645d1f9a @alexksikes committed Dec 27, 2011
Showing with 4 additions and 4 deletions.
  1. +1 −1
  2. +1 −1 webapp/app/controllers/
  3. +2 −2 webapp/app/views/search.html
@@ -6,7 +6,7 @@ About
sGeo is a very simple minimalistic geocoder built around [Geonames](, []( and [Sphinx]( You can try to geocode any place in the world or just restrict it to US cities and zip codes. sGeo will not geocode full addresses as they are not available in Geonames. It will only geocode cities, zip codes or places such as national parks, universities, etc ... sGeo was first written in late 2007 to batch geocode the contractor database used in [Chiefmall](
-Feel free to try a [demo](
+Feel free to try a [demo](
@@ -17,7 +17,7 @@ def GET(self):
if not sgeo.get_coords_from_ip(location):
location = 'Palo Alto, CA'
- raise web.seeother('/search?q=%s&usa=True' % location)
+ raise web.seeother('/search?q=%s' % location)
class search:
def GET(self):
@@ -11,8 +11,8 @@
<form method="get" action="search" id="search_form">
<div class="choice">
- <input type="radio" name="usa" value="True" $cond(query_param('usa'), 'checked=', '')>US Cities or Zips
<input type="radio" name="usa" value="" $cond(not query_param('usa'), 'checked=', '')>World Places
+ <input type="radio" name="usa" value="True" $cond(query_param('usa'), 'checked=', '')>US Cities or Zips
<div class="search"><input type="text" name="q" size="28" value="$query"></div>
@@ -117,4 +117,4 @@
<ul id="info" class="list">
<li id="toggle_about"><a href="#">About</a></li> |
<li><a href="">Get the source code &raquo;</a></li>

0 comments on commit 2b35639

Please sign in to comment.