FR: allow lat/lng str instead of float

オープン
#503 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
api

調査の方向性

再現された latitude/longitude 文字列のリストを使い、エントリーポイントである client.elevation から開始して、issue で言及されている polyline-encoding の経路を調べます。完了条件は、示されている複数地点のリクエストがそれらの文字列座標を受け付け、手動で float に変換しなくても標高結果を返すことです。プロジェクトに関連するテスト箇所がある場合は、その例のテストカバレッジを追加するか実行してください。

索引モデルが issue の本文から書いたものです。

説明

triage me type: feature request

Is your feature request related to a problem? Please describe.
A multi-location elevation() request throws an err when the locs are a list of lat/lng strings.

Describe the solution you'd like
I would have expected this to work.

locations = [('40.714728', '-73.998672'), ('-34.397', '150.644')]
results = client.elevation(locations)

Since I'm retrieving them from json text and googlemaps eventually returns them as json text, why require manual/interim conversion to floats?

Additional context
It appears this might be due to the polyline encoding. But still...why is that mandatory for small lists of coords?

主要言語
Python
スター
5k
フォーク
1.4k
平均マージ
5時間 9分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

googlemaps/google-maps-services-python のほかの issue

googlemaps/google-maps-services-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。