pep8 compliance, implementing raw_query

This PR:

* changes public function names to lowercase
* adds a `raw_query()` public function for complete QL queries.
* removes the stub of a `search()` function (better implemented in the costom queries.)
* raises the `OverpassException` rather than exiting with a print statement.
* adds some docstrings.
Seems to me raw_get() shouldn't need to know about asGeoJSON at all!

I'll do a pull and take a look at this.


Cheers,
Michael
spiderOSM.org

On Tue, Nov 25, 2014 at 1:29 PM, Martijn van Exel <notifications@github.com>
wrote:

> In overpass/api.py:
>
> > @@ -37,17 +36,21 @@ def __init__(self, *args, **kwargs):
> >              requests_log.setLevel(logging.DEBUG)
> >              requests_log.propagate = True
> >
> > -    def Get(self, query, asGeoJSON=False):
> > -        """Pass in an Overpass query in Overpass QL"""
> > +    def get(self, query, asGeoJSON=False):
> > +        """Pass a literal Overpass QL query directly to the Overpass API"""
> > +        return self.raw_get(self._ConstructQLQuery(
> > +            query,
> > +            asGeoJSON=asGeoJSON), asGeoJSON=asGeoJSON)
>
> I don't really like passing asGeoJSON around like this... Perhaps better
> make it a private variable in the API class?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/mvexel/overpass-api-python-wrapper/pull/24/files#r20897241>
> .
>