georust / georust/geocoding

OpenCage: Allow manually setting `no_annotations=1` for `forward_full` and `reverse_full`

Open
#62 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
82
Forks
22
PR merge metrics
No merged PRs in 30d

Description

For my use case, I need to reverse geocode a place and get the full response to get access to the [individual components of place name](https://docs.rs/geocoding/latest/geocoding/opencage/struct.Results.html#structfield.components). However, I don't need any annotations. It would reduce internet usage of my app if I could override the `no_annotations` flag.

I propose a field `no_annotations` to be added to the [`opencage::Parameters`](https://docs.rs/geocoding/latest/geocoding/opencage/struct.Parameters.html) struct. Setting it to `true` would pass `no_annotations=1` to the API.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.