Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
bf15394
Broken test link (#242)
nicolacammillini Jun 19, 2018
ce498cb
Add findplacebytext method and fields params (#234)
stephenmcd Jun 25, 2018
d0d00ea
Version 3.0.0
stephenmcd Jun 25, 2018
864f118
Dev version
stephenmcd Jun 25, 2018
93d47cb
Fix autocomplete sessiontoken.
stephenmcd Jun 26, 2018
fe7cb74
Add constants for places fields param by category.
stephenmcd Jun 27, 2018
49f834c
Version 3.0.1
stephenmcd Jun 27, 2018
216588d
Version 3.0.1-dev
stephenmcd Jun 27, 2018
aa7dc9c
Add sessiontoken to place details request to get free request in an a…
SBillion Jul 1, 2018
afdec65
Version 3.0.2
stephenmcd Jul 2, 2018
8c4c0c2
Update README.md
stephenmcd Aug 19, 2018
a3d79ab
Do not override headers passed in request_kwargs
Tecktron Sep 10, 2018
f6e02a5
Update client.py
Tecktron Sep 10, 2018
cda8166
Merge pull request #252 from Tecktron/save-request-headers
stephenmcd Sep 11, 2018
2b580ca
Fix typos in docstrings
numrut Oct 27, 2018
e096477
Merge pull request #260 from numrut/master
stephenmcd Oct 29, 2018
d6c514d
Increase the required version of requests.
Nov 12, 2018
7ed40b4
Merge pull request #262 from engstrom/feature/requests-version-bump
stephenmcd Nov 13, 2018
7f7d302
user_ratings_total field added to place atmosphere fields
poleha May 30, 2019
6d1a2b8
Merge pull request #281 from poleha/place_fields_updated
amuramoto Jun 28, 2019
6e60b3c
Parameter session_token in places_autocomplete should be optional
Aug 7, 2019
9e5a65d
Merge pull request #287 from davidrobles/autocomplete-optional-sessio…
amuramoto Aug 9, 2019
5d8d006
remove deprecated places radar (#288)
jpoehnelt Aug 19, 2019
681dabe
fix top level import and remove unused imports (#289)
jpoehnelt Aug 20, 2019
eef6f7c
add badges for pypi and number of contributors and download (#293)
jpoehnelt Aug 22, 2019
e063ee0
Include tests in sdist pypi tarball (#273)
scarabeusiv Aug 22, 2019
8297fd9
add long description to setup.py (#292)
jpoehnelt Aug 22, 2019
e2e9238
upgrade to pytest and nox with coverage reporting to codecov (#291)
jpoehnelt Aug 22, 2019
102dae3
update readme and direct to documentation for api key (#297)
jpoehnelt Aug 23, 2019
35a0f10
automate upload to pypi with travis deploy (#296)
jpoehnelt Aug 23, 2019
5439986
explicitly truncate float precision in format_float to 8 decimals, cl…
jpoehnelt Aug 26, 2019
393536c
release version 3.1.0 (#298)
jpoehnelt Aug 27, 2019
20da29d
fix travis deploy (#305)
jpoehnelt Aug 27, 2019
5c4440c
fix(manifest): include changelog in distribution (#308)
Thunderbottom Aug 28, 2019
1549175
set version to 3.1.1 (#310)
jpoehnelt Aug 28, 2019
f79a1ee
test distribution tar as part of ci (#311)
jpoehnelt Aug 29, 2019
d3cd4c0
add github issue templates (#306)
jpoehnelt Aug 30, 2019
91efdd1
add missing line to fix github templates (#312)
jpoehnelt Aug 30, 2019
3afe658
escape github template labels (#313)
jpoehnelt Aug 30, 2019
b70730a
add support for subfields in mask (#302)
jpoehnelt Sep 9, 2019
5817524
Update CHANGELOG.md
jpoehnelt Sep 9, 2019
32a6a98
set version to 3.1.2 (#315)
jpoehnelt Sep 11, 2019
e10f05d
travis conditional: tag to tags (#316)
jpoehnelt Sep 11, 2019
cdf75c7
add deprecation warning for alt_id, id, reference, and scope (#319)
jpoehnelt Sep 20, 2019
c5e450b
release 3.1.3 (#320)
jpoehnelt Sep 20, 2019
4b1721f
add stale config
jpoehnelt Oct 3, 2019
704cbb4
modify stale config
jpoehnelt Oct 3, 2019
866bb21
modify stale config
jpoehnelt Oct 3, 2019
a3fe2de
Update issue templates
jpoehnelt Oct 3, 2019
8cff8e5
add pr templates
jpoehnelt Oct 14, 2019
2947d61
fix: APIError.__str__ should always return a str (#328)
Nov 15, 2019
147e7dc
chore: release v3.1.4 (#329)
jpoehnelt Nov 15, 2019
81640b0
fix: remove deprecated place fields (#332)
jpoehnelt Dec 19, 2019
19f6e53
build: test and build for python 3 only (#333)
jpoehnelt Dec 19, 2019
06f3a14
chore(release): 4.0.0 (#334)
jpoehnelt Dec 19, 2019
3a871b0
docs: fix changelog for v4.0.0
jpoehnelt Dec 19, 2019
94c757e
style: Update pull request template. (#335)
arriolac Dec 24, 2019
e3dcfc3
fix: increase stale bot window
jpoehnelt Jan 8, 2020
2d6d4a9
feat: Adding experience_id support to Client class. (#338)
arriolac Jan 21, 2020
700cfec
chore(release): 4.1.0 (#339)
arriolac Jan 22, 2020
7f70f0c
docs(Template): update location of PR template (#340)
arriolac Jan 24, 2020
034411e
docs(Code of Conduct): adding CODE_OF_CONDUCT.md file. (#341)
arriolac Jan 30, 2020
553e861
docs: minimize mention of client id (#342)
jpoehnelt Jan 30, 2020
0675432
feat: Add support of Maps Static API (#344)
romavlasov Feb 12, 2020
e27988e
docs(README): update requirement to Python 3.5
jpoehnelt Feb 12, 2020
3371e10
chore(release): 4.2.0 (#346)
jpoehnelt Feb 12, 2020
6682591
docs(directions): add note about via in waypoints param
jpoehnelt Feb 12, 2020
c61a1e3
fix: add python requires attribute to setup.py
jpoehnelt Feb 12, 2020
03a61f2
docs(README): added link to the github page doc (#347)
FredaXin Feb 24, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: 'type: bug, triage me'
assignees: ''

---

Thanks for stopping by to let us know something could be better!

---
**PLEASE READ**

If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/). This will ensure a timely response.

Discover additional support services for the Google Maps Platform, including developer communities, technical guidance, and expert support at the Google Maps Platform [support resources page](https://developers.google.com/maps/support/).

If your bug or feature request is not related to this particular library, please visit the Google Maps Platform [issue trackers](https://developers.google.com/maps/support/#issue_tracker).

Check for answers on StackOverflow with the [google-maps](http://stackoverflow.com/questions/tagged/google-maps) tag.

---

Please be sure to include as much information as possible:

#### Environment details

1. Specify the API at the beginning of the title (for example, "Places: ...")
2. OS type and version
3. Library version and other environment information

#### Steps to reproduce

1. ?

#### Code example

```python
# example
```

#### Stack trace
```
# example
```

Following these steps will guarantee the quickest resolution possible.

Thanks!
35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: Feature request
about: Suggest an idea for this library
title: ''
labels: 'type: feature request, triage me'
assignees: ''

---

Thanks for stopping by to let us know something could be better!

---
**PLEASE READ**

If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/). This will ensure a timely response.

Discover additional support services for the Google Maps Platform, including developer communities, technical guidance, and expert support at the Google Maps Platform [support resources page](https://developers.google.com/maps/support/).

If your bug or feature request is not related to this particular library, please visit the Google Maps Platform [issue trackers](https://developers.google.com/maps/support/#issue_tracker).

Check for answers on StackOverflow with the [google-maps](http://stackoverflow.com/questions/tagged/google-maps) tag.

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/support_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Support request
about: If you have a support contract with Google, please create an issue in the Google
Cloud Support console.
title: ''
labels: 'triage me, type: question'
assignees: ''

---

**PLEASE READ**

If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/). This will ensure a timely response.

Discover additional support services for the Google Maps Platform, including developer communities, technical guidance, and expert support at the Google Maps Platform [support resources page](https://developers.google.com/maps/support/).

If your bug or feature request is not related to this particular library, please visit the Google Maps Platform [issue trackers](https://developers.google.com/maps/support/#issue_tracker).

Check for answers on StackOverflow with the [google-maps](http://stackoverflow.com/questions/tagged/google-maps) tag.

---
12 changes: 12 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: Pull request
about: Create a pull request
label: 'triage me'
---
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [ ] Make sure to open a GitHub issue as a bug/feature request before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕
11 changes: 11 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Thank you for opening a Pull Request!

---

Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [ ] Make sure to open a GitHub issue as a bug/feature request before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕
60 changes: 60 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Configuration for probot-stale - https://github.com/probot/stale

# Number of days of inactivity before an Issue or Pull Request becomes stale
daysUntilStale: 120

# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
daysUntilClose: 180

# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
onlyLabels: []

# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
exemptLabels:
- pinned
- "type: bug"

# Set to true to ignore issues in a project (defaults to false)
exemptProjects: false

# Set to true to ignore issues in a milestone (defaults to false)
exemptMilestones: false

# Set to true to ignore issues with an assignee (defaults to false)
exemptAssignees: false

# Label to use when marking as stale
staleLabel: "stale"

# Comment to post when marking as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. Please comment here if it is still valid so that we can
reprioritize. Thank you!

# Comment to post when removing the stale label.
# unmarkComment: >
# Your comment here.

# Comment to post when closing a stale Issue or Pull Request.
closeComment: >
Closing this. Please reopen if you believe it should be addressed. Thank you for your contribution.

# Limit the number of actions per hour, from 1-30. Default is 30
limitPerRun: 10

# Limit to only `issues` or `pulls`
only: issues

# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
# pulls:
# daysUntilStale: 30
# markComment: >
# This pull request has been automatically marked as stale because it has not had
# recent activity. It will be closed if no further activity occurs. Thank you
# for your contributions.

# issues:
# exemptLabels:
# - confirmed
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ dist/

# python testing things etc
.coverage
.tox
.nox
env
nosetests.xml
googlemaps.egg-info
*.egg

.vscode/
.idea/
35 changes: 27 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,35 @@
language: python
dist: xenial

matrix:
include:
- { python: '2.7', env: TOXENV=py27 }
- { python: '3.4', env: TOXENV=py34 }
- { python: '3.5', env: TOXENV=py35 }
- { python: '3.6', env: TOXENV=py36 }
- { python: '3.6', env: TOXENV=docs }
- python: '3.5'
env: NOXSESSION="tests-3.5"
- python: '3.6'
env: NOXSESSION="tests-3.6"
- python: '3.7'
env: NOXSESSION="tests-3.7"
sudo: required # required for Python 3.7 (github.com/travis-ci/travis-ci#9069)
- python: '3.8'
env: NOXSESSION="tests-3.8"
- python: '3.6'
env: NOXSESSION="docs"

install:
- pip install requests
- pip install tox
- ./.travis/install.sh

script:
- tox
- python3 -m nox --session "$NOXSESSION"
- python3 -m nox -e distribution

deploy:
on:
tags: true
python: '3.6' # only run this deploy once with python 3.6
provider: pypi
distributions: 'sdist bdist_wheel'
user: __token__ # api token encrypted within travis
skip_existing: true

notifications:
email: false
6 changes: 6 additions & 0 deletions .travis/distribution.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

rm -rf dist

python setup.py sdist
pip install $(find dist -name googlemaps-*.tar.gz)
11 changes: 11 additions & 0 deletions .travis/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

set -exo pipefail

if ! python3 -m pip --version; then
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python3 get-pip.py
sudo python3 -m pip install nox
else
python3 -m pip install nox
fi
63 changes: 63 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Changelog
All notable changes to this project will be documented in this file.

## [v4.2.0]
### Added
- Add support for Maps Static API (#344)

## [v4.1.0]
### Added
- Adding support for passing in `experience_id` to Client class (#338)

## [v4.0.0]
### Changed
- Python 2 is no longer supported
- Removed place fields: `alt_id`, `id`, `reference`, and `scope`. Read more about this at https://developers.google.com/maps/deprecations.

## [v3.1.4]
### Changed
- `APIError.__str__` should always return a str (#328)

## [v3.1.3]
### Changed
- deprecation warning for place fields: `alt_id`, `id`, `reference`, and `scope`. Read more about this at https://developers.google.com/maps/deprecations.

## [v3.1.2]
### Added
- Tests for distribution tar as part of CI
- Support for subfields such as `geometry/location` and `geometry/viewport` in Places.

## [v3.1.1]
### Changed
- Added changelog to manifest

## [v3.1.0]
### Changed
- Switched build system to use [nox](https://nox.thea.codes/en/stable/), pytest, and codecov. Added Python 3.7 to test framework.
- Set precision of truncated latitude and longitude floats [to 8 decimals](https://github.com/googlemaps/google-maps-services-python/pull/301) instead of 6.
- Minimum version of requests increased.
- Session token parameter [added](https://github.com/googlemaps/google-maps-services-python/pull/244) to `place()`.
- Fixed issue where headers in `request_kwargs` were being overridden.
### Added
- Automation for PyPi uploads.
- Long description to package.
- Added tests to manifest and tarball.
### Removed
- Removed places `places_autocomplete_session_token` which can be replaced with `uuid.uuid4().hex`.
- Removed deprecated `places_radar`.


**Note:** Start of changelog is 2019-08-27, [v3.0.2].

[Unreleased]: https://github.com/googlemaps/google-maps-services-python/compare/4.2.0...HEAD
[v4.2.0]: https://github.com/googlemaps/google-maps-services-python/compare/4.1.0...4.2.0
[v4.1.0]: https://github.com/googlemaps/google-maps-services-python/compare/4.0.0...4.1.0
[v4.0.0]: https://github.com/googlemaps/google-maps-services-python/compare/3.1.4...4.0.0
[v3.1.4]: https://github.com/googlemaps/google-maps-services-python/compare/3.1.3...3.1.4
[v3.1.3]: https://github.com/googlemaps/google-maps-services-python/compare/3.1.2...3.1.3
[v3.1.2]: https://github.com/googlemaps/google-maps-services-python/compare/3.1.1...3.1.2
[v3.1.1]: https://github.com/googlemaps/google-maps-services-python/compare/3.1.0...3.1.1
[v3.1.0]: https://github.com/googlemaps/google-maps-services-python/compare/3.0.2...3.1.0
[v3.0.2]: https://github.com/googlemaps/google-maps-services-python/compare/3.0.1...3.0.2
[v3.0.1]: https://github.com/googlemaps/google-maps-services-python/compare/3.0.0...3.0.1
[v3.0.0]: https://github.com/googlemaps/google-maps-services-python/compare/2.5.1...3.0.0
63 changes: 63 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Google Open Source Community Guidelines

At Google, we recognize and celebrate the creativity and collaboration of open
source contributors and the diversity of skills, experiences, cultures, and
opinions they bring to the projects and communities they participate in.

Every one of Google's open source projects and communities are inclusive
environments, based on treating all individuals respectfully, regardless of
gender identity and expression, sexual orientation, disabilities,
neurodiversity, physical appearance, body size, ethnicity, nationality, race,
age, religion, or similar personal characteristic.

We value diverse opinions, but we value respectful behavior more.

Respectful behavior includes:

* Being considerate, kind, constructive, and helpful.
* Not engaging in demeaning, discriminatory, harassing, hateful, sexualized, or
physically threatening behavior, speech, and imagery.
* Not engaging in unwanted physical contact.

Some Google open source projects [may adopt][] an explicit project code of
conduct, which may have additional detailed expectations for participants. Most
of those projects will use our [modified Contributor Covenant][].

[may adopt]: https://opensource.google/docs/releasing/preparing/#conduct
[modified Contributor Covenant]: https://opensource.google/docs/releasing/template/CODE_OF_CONDUCT/

## Resolve peacefully

We do not believe that all conflict is necessarily bad; healthy debate and
disagreement often yields positive results. However, it is never okay to be
disrespectful.

If you see someone behaving disrespectfully, you are encouraged to address the
behavior directly with those involved. Many issues can be resolved quickly and
easily, and this gives people more control over the outcome of their dispute.
If you are unable to resolve the matter for any reason, or if the behavior is
threatening or harassing, report it. We are dedicated to providing an
environment where participants feel welcome and safe.

## Reporting problems

Some Google open source projects may adopt a project-specific code of conduct.
In those cases, a Google employee will be identified as the Project Steward,
who will receive and handle reports of code of conduct violations. In the event
that a project hasn’t identified a Project Steward, you can report problems by
emailing opensource@google.com.

We will investigate every complaint, but you may not receive a direct response.
We will use our discretion in determining when and how to follow up on reported
incidents, which may range from not taking action to permanent expulsion from
the project and project-sponsored spaces. We will notify the accused of the
report and provide them an opportunity to discuss it before any action is
taken. The identity of the reporter will be omitted from the details of the
report supplied to the accused. In potentially harmful situations, such as
ongoing harassment or threats to anyone's safety, we may take action without
notice.

*This document was adapted from the [IndieWeb Code of Conduct][] and can also
be found at <https://opensource.google/conduct/>.*

[IndieWeb Code of Conduct]: https://indieweb.org/code-of-conduct
Loading