Skip to content
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

Closed
wants to merge 10 commits into from
Closed

Conversation

arnasbr
Copy link
Contributor

@arnasbr arnasbr commented Nov 3, 2023

Adding support for application/vnd.google-earth.kml+xml response in time-map

@arnasbr arnasbr self-assigned this Nov 3, 2023
@arnasbr arnasbr marked this pull request as draft November 3, 2023 15:08
@arnasbr arnasbr changed the title Added support for kml+xml time-map response Added support for kml time-map response Nov 15, 2023
@arnasbr arnasbr marked this pull request as ready for review November 15, 2023 11:51
@arnasbr arnasbr linked an issue Nov 15, 2023 that may be closed by this pull request
if response_class == TimeMapKmlResponse:
return parse_kml_as(text)
else:
return parse_raw_as(response_class, text)
Copy link
Contributor

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}",
Copy link
Contributor

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.

Copy link

@PKJonas PKJonas left a 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

@arnasbr
Copy link
Contributor Author

arnasbr commented Jan 16, 2024

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

@arnasbr arnasbr marked this pull request as draft March 22, 2024 14:58
@arnasbr arnasbr removed their assignment Aug 19, 2024
@arnasbr
Copy link
Contributor Author

arnasbr commented Oct 16, 2024

This PR is a bit outdated, creating a new one is simpler than trying to rebase.

New PR: #136

@arnasbr arnasbr closed this Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add kml time-map response in python sdk
3 participants