New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

python-google-places

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

python-google-places - pypi Package Compare versions

Comparing version
1.2.0
to
1.3.1
+34
-13
googleplaces/__init__.py

@@ -38,3 +38,3 @@ """

'geocode_location']
__version__ = '1.2.0'
__version__ = '1.3.1'
__author__ = 'Samuel Adu'

@@ -224,3 +224,3 @@ __email__ = 'sam@slimkrazy.com'

lat_lng=None, name=None, radius=3200, rankby=ranking.PROMINENCE,
sensor=False, types=[]):
sensor=False, type=None, types=[]):
"""Perform a nearby search using the Google Places API.

@@ -251,4 +251,6 @@

device using a location sensor (default False).
type -- Optional type param used to indicate place category.
types -- An optional list of types, restricting the results to
Places (default []).
Places (default []). If there is only one item the request
will be send as type param.
"""

@@ -273,4 +275,9 @@ if location is None and lat_lng is None:

self._request_params['rankby'] = rankby
if len(types) > 0:
self._request_params['types'] = '|'.join(types)
if type:
self._request_params['type'] = type
elif types:
if len(types) == 1:
self._request_params['type'] = types[0]
elif len(types) > 1:
self._request_params['types'] = '|'.join(types)
if keyword is not None:

@@ -289,3 +296,3 @@ self._request_params['keyword'] = keyword

def text_search(self, query, language=lang.ENGLISH, lat_lng=None,
radius=3200, types=[], location=None):
radius=3200, type=None, types=[], location=None):
"""Perform a text search using the Google Places API.

@@ -306,4 +313,6 @@

"Restaurant in New York".
type -- Optional type param used to indicate place category.
types -- An optional list of types, restricting the results to
Places (default []).
Places (default []). If there is only one item the request
will be send as type param.
"""

@@ -315,4 +324,9 @@ self._request_params = {'query': query}

self._request_params['radius'] = radius
if len(types) > 0:
self._request_params['types'] = '|'.join(types)
if type:
self._request_params['type'] = type
elif types:
if len(types) == 1:
self._request_params['type'] = types[0]
elif len(types) > 1:
self._request_params['types'] = '|'.join(types)
if language is not None:

@@ -375,3 +389,3 @@ self._request_params['language'] = language

language=lang.ENGLISH, lat_lng=None, opennow=False,
radius=3200, types=[], location=None):
radius=3200, type=None, types=[], location=None):
"""Perform a radar search using the Google Places API.

@@ -400,4 +414,6 @@

device using a location sensor (default False).
type -- Optional type param used to indicate place category
types -- An optional list of types, restricting the results to
Places (default []).
Places (default []). If there is only one item the request
will be send as type param
"""

@@ -423,4 +439,9 @@ if keyword is None and name is None and len(types) is 0:

self._request_params['name'] = name
if len(types) > 0:
self._request_params['types'] = '|'.join(types)
if type:
self._request_params['type'] = type
elif types:
if len(types) == 1:
self._request_params['type'] = types[0]
elif len(types) > 1:
self._request_params['types'] = '|'.join(types)
if language is not None:

@@ -427,0 +448,0 @@ self._request_params['language'] = language

@@ -45,3 +45,3 @@ """

PORTUGUESE = 'pt'
PORTUGUESE_BRAZIL = 'pt=BR'
PORTUGUESE_BRAZIL = 'pt-BR'
PORTUGUESE_PORTUGAL = 'pt-PT'

@@ -48,0 +48,0 @@ ROMANSCH = 'rm'

Metadata-Version: 1.0
Name: python-google-places
Version: 1.2.0
Version: 1.3.1
Summary: A simple wrapper around the Google Places API.

@@ -5,0 +5,0 @@ Home-page: http://github.com/slimkrazy/python-google-places