Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Geocodio/geocodio-library-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.4.0
Choose a base ref
...
head repository: Geocodio/geocodio-library-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.5.0
Choose a head ref
  • 2 commits
  • 13 files changed
  • 2 contributors

Commits on Jan 6, 2026

  1. feat(distance): add Distance API support (#21)

    * feat(distance): add Distance API support
    
    Add full Distance API support matching the PHP SDK implementation:
    
    - Add Coordinate class for flexible coordinate input formats (string, tuple, dict)
    - Add distance() method for single origin to multiple destinations (GET)
    - Add distance_matrix() method for multiple origins × destinations (POST)
    - Add async job methods for large distance matrix calculations:
      - create_distance_matrix_job()
      - distance_matrix_job_status()
      - distance_matrix_jobs()
      - get_distance_matrix_job_results()
      - download_distance_matrix_job()
      - delete_distance_matrix_job()
    - Enhance geocode() and reverse() with distance parameters
    - Add type-safe constants for mode, units, ordering, and sorting
    - Add verify_ssl parameter to client for testing with self-signed certs
    - Add comprehensive unit tests and E2E tests
    - Update README with full Distance API documentation
    
    All changes are backward compatible - existing code continues to work.
    
    * fix(tests): add __init__.py to test subdirectories
    
    Prevents pytest module name collision between unit and e2e test files
    with the same name (e.g., test_distance.py in both directories).
    
    * fix(tests): correct distance API test assertion for origin ID
    
    The API does not return origin ID for GET /distance requests, only
    destination IDs. Updated test to verify destination IDs instead.
    
    * fix(distance): remove unused f-string prefixes
    
    * chore: prepare release v0.5.0
    
    - Bump version to 0.5.0
    - Update CHANGELOG with Distance API features
    
    ---------
    
    Co-authored-by: Mathias Hansen <me@codemonkey.io>
    sylvesterdamgaard and MiniCodeMonkey authored Jan 6, 2026
    Configuration menu
    Copy the full SHA
    3979c7f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    94629c1 View commit details
    Browse the repository at this point in the history
Loading