-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for kml time-map response #92
Conversation
a9333be
to
7fa587a
Compare
if response_class == TimeMapKmlResponse: | ||
return parse_kml_as(text) | ||
else: | ||
return parse_raw_as(response_class, text) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmm, not a good one. Can you wrap KML in pydantic?
@@ -369,7 +371,8 @@ async def time_filter_proto_async( | |||
properties: Optional[List[PropertyProto]] = None, | |||
) -> TimeFilterProtoResponse: | |||
resp = await send_proto_async( | |||
f"https://{self._sdk_params.proto_host}/api/v2/{country.value}/time-filter/fast/{transportation.value.name}", # noqa | |||
f"https://{self._sdk_params.proto_host}/api/v2/{country.value}/time-filter/fast/{transportation.value.name}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try not to push unrelated code in prs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is pretty old, is it still relevant?
just commenting to make toast shut up about it
It needs to be reworked probably, this kml library I used makes usage pretty confusing. Eventually we'll come back to it |
This PR is a bit outdated, creating a new one is simpler than trying to rebase. New PR: #136 |
Adding support for
application/vnd.google-earth.kml+xml
response intime-map