Skip to content

Conversation

@jonperron
Copy link
Owner

Changelog:

  • Add support for freefloatings nearby APIs
  • Add tests

Fix #80

@jonperron jonperron requested a review from Copilot November 10, 2025 14:39
@jonperron jonperron added this to the 1.3.0 milestone Nov 10, 2025
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 PR adds support for the Navitia free-floating vehicles nearby API, enabling users to query nearby shared mobility options (bikes, scooters, cars) through multiple endpoint patterns.

Key changes:

  • Introduces FreeFloating entity to represent shared mobility vehicles
  • Adds FreefloatingsNearbyApiClient with four query methods (by region ID, resource path, coordinates, and coordinates-only)
  • Includes comprehensive test coverage with mocked API responses

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/test_navitia_client.py Adds integration test verifying the freefloatings_nearby client is properly instantiated
tests/test_data/freefloatings_nearby.json Provides mock API response data with two sample vehicles (scooter and bike)
tests/client/apis/test_freefloatings_nearby_apis.py Comprehensive unit tests for all four API methods with URL verification and data parsing assertions
navitia_client/entities/free_floating.py Defines the FreeFloating dataclass with vehicle properties and payload parser
navitia_client/client/navitia_client.py Registers the freefloatings_nearby property to expose the new API client
navitia_client/client/apis/freefloatings_nearby_apis.py Implements the API client with four methods for different query patterns

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

Changelog:
* Add support for freefloating nearby APIs
* Add tests
@jonperron jonperron force-pushed the feat/freefloating_api branch from 3299630 to 45741d9 Compare November 10, 2025 14:48
@jonperron jonperron merged commit d985364 into main Nov 10, 2025
5 checks passed
@jonperron jonperron deleted the feat/freefloating_api branch November 10, 2025 14:50
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 support for Freefloatings API

2 participants