#place #rating #api #google #reviews #api-access #api-bindings

google-places-api

Crate to access google places api. Get location data for over 200 million places, and add place details, search, and autocomplete to your apps.

8 releases (4 breaking)

0.5.2 Jul 12, 2023
0.5.1 Jul 12, 2023
0.4.0 Jul 8, 2023
0.3.0 Jul 5, 2023
0.1.1 Jun 13, 2023

#1 in #reviews


Used in smart-llamas

MIT license

1.5MB
2K SLoC

Google Places API

Working Examples

  • cargo run --example nearby_search
  • cargo run --example place_details
  • cargo run --example find_place
  • cargo run --example place_photos
  • cargo run --example text_search

Contributing Instructions

  • Add "rust-analyzer.diagnostics.disabled": ["unresolved-import"] to your settings.json file to disable proc macro warnings for serde.
  • cargo test will run integration tests that ensure basic functionality is in check

Helpful Commands

Repo Structure

├── src
│   ├── lib.rs
│   ├── error.rs
│   ├── client.rs
│   ├── models
│   │   ├── place_details.rs
│   │   └── ...
│   ├── services
│   │   ├── places.rs
│   │   └── ...
│   └── utils
│       ├── request.rs
│       └── ...
├── tests
│   ├── integration.rs
│   └── unit
│       ├── client.rs
│       ├── services
│       │   ├── places.rs
│       │   └── ...
│       └── ...
├── examples
│   ├── main.rs
│   ├── basic_search.rs
│   └── ...
├── Cargo.toml
└── README.md

Dependencies

~13–28MB
~438K SLoC