query functionality

g or geo queries for geolocation