Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Webapp default search is now on world places

  • Loading branch information...
commit 2b35639f011cb038949bd330387fecfe645d1f9a 1 parent ba9e013
Alex Ksikes authored
2  README.md
View
@@ -6,7 +6,7 @@ About
sGeo is a very simple minimalistic geocoder built around [Geonames](http://www.geonames.org/), [zip-codes.com](http://www.zip-codes.com/) and [Sphinx](http://sphinxsearch.com/). 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](http://www.chiefmall.com).
-Feel free to try a [demo](http://sgeo.ksikes.org).
+Feel free to try a [demo](http://sgeo.ksikes.net).
Installation
-------------
2  webapp/app/controllers/base.py
View
@@ -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):
4 webapp/app/views/search.html
View
@@ -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>
<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="https://github.com/alexksikes/sGeo">Get the source code &raquo;</a></li>
-</ul>
+</ul>
Please sign in to comment.
Something went wrong with that request. Please try again.