Skip to content

Conversation

@jonperron
Copy link
Owner

Changelog

  • Add new parameters to all Public Transport related APIS
  • Update documentation

Fix #84

Changelog
* Add new parameters to all Public Transport related APIS
* Update documentation
@jonperron jonperron requested a review from Copilot November 10, 2025 07:56
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds support for the disable_geojson parameter to multiple public transportation API clients, allowing users to optionally disable GeoJSON data in API responses for improved performance when geographic data is not needed.

  • Adds the disable_geojson boolean parameter (default False) to all methods across 11 public transportation API client classes
  • Updates corresponding documentation files to reflect the new parameter in method signatures
  • Follows the existing codebase pattern where disable_geojson is already supported in other API endpoints (e.g., places_nearby_apis.py)

Reviewed Changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
navitia_client/client/apis/public_transportation_apis/vehicle_journey_apis.py Adds disable_geojson parameter to all four methods (list from region, get by ID, list from coordinates, get by ID and coordinates) with documentation
navitia_client/client/apis/public_transportation_apis/stop_point_apis.py Adds disable_geojson parameter to all four methods with documentation
navitia_client/client/apis/public_transportation_apis/stop_area_apis.py Adds disable_geojson parameter to all four methods with documentation
navitia_client/client/apis/public_transportation_apis/route_apis.py Adds disable_geojson parameter to all four methods with documentation
navitia_client/client/apis/public_transportation_apis/physical_mode_apis.py Adds disable_geojson parameter to all four methods with documentation
navitia_client/client/apis/public_transportation_apis/network_apis.py Adds disable_geojson parameter to all four methods with documentation
navitia_client/client/apis/public_transportation_apis/line_apis.py Adds disable_geojson parameter to all four methods with documentation
navitia_client/client/apis/public_transportation_apis/entity_apis.py Adds disable_geojson parameter to abstract method signatures (4 methods) with partial documentation
navitia_client/client/apis/public_transportation_apis/disruption_apis.py Adds disable_geojson parameter to all four methods with documentation
navitia_client/client/apis/public_transportation_apis/company_apis.py Adds disable_geojson parameter to all four methods with documentation
navitia_client/client/apis/public_transportation_apis/commercial_mode_apis.py Adds disable_geojson parameter to all four methods and passes it through filters dictionary
docs/api_support/vehicle_journeys.md Updates method signatures to include the new parameter
docs/api_support/stop_points.md Updates method signatures to include the new parameter
docs/api_support/stop_areas.md Updates method signatures to include the new parameter
docs/api_support/routes.md Updates method signatures to include the new parameter
docs/api_support/physical_modes.md Updates method signatures to include the new parameter
docs/api_support/networks.md Updates method signatures to include the new parameter
docs/api_support/lines.md Updates method signatures to include the new parameter
docs/api_support/disruptions.md Updates method signatures to include the new parameter
docs/api_support/companies.md Updates method signatures to include the new parameter
docs/api_support/commercial_modes.md Updates method signatures to include the new parameter with indentation issues

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jonperron jonperron merged commit ad9fe39 into main Nov 10, 2025
11 checks passed
@jonperron jonperron deleted the feat/support_disable_geojson branch November 10, 2025 08:03
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 missing disable_geojson parameters to PT APIs

2 participants