Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ringsaturn committed Jul 9, 2023
1 parent 9ccc4d8 commit a4e8413
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ For reuse it,
[`racemap/rust-tz-service`](https://github.com/racemap/rust-tz-service) is a
good example.

A Redis protocol demo could be used here:
[redizone](https://github.com/ringsaturn/redizone).

## Bindings

- Ruby, see [tzf-rb](https://github.com/HarlemSquirrel/tzf-rb)
Expand Down
6 changes: 2 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ use std::vec;
use tzf_rel::{load_preindex, load_reduced};
mod gen;

#[derive(Debug)]
struct Item {
polys: Vec<Polygon>,
name: String,
Expand All @@ -52,7 +51,6 @@ impl Item {
/// [geometry-rs]: https://github.com/ringsaturn/geometry-rs
/// [geometry]: https://github.com/tidwall/geometry
/// [Josh Baker]: https://github.com/tidwall
#[derive(Debug)]
pub struct Finder {
all: Vec<Item>,
data_version: String,
Expand Down Expand Up @@ -91,7 +89,7 @@ impl Finder {
interior.push(holeextr);
}

let geopoly = geometry_rs::Polygon::new(exterior, interior);
let geopoly = geometry_rs::Polygon::new(exterior, interior, true);
polys.push(geopoly);
}

Expand Down Expand Up @@ -213,7 +211,7 @@ pub fn deg2num(lng: f64, lat: f64, zoom: i64) -> (i64, i64) {
/// It work for most places on earth and here is a quick loop of preindex data:
/// ![](https://user-images.githubusercontent.com/13536789/200174943-7d40661e-bda5-4b79-a867-ec637e245a49.png)
///
#[derive(Debug)]

pub struct FuzzyFinder {
min_zoom: i64,
max_zoom: i64,
Expand Down

0 comments on commit a4e8413

Please sign in to comment.