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

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

#782 in Web programming

Download history 6/week @ 2024-02-19 6/week @ 2024-02-26 3/week @ 2024-03-11 182/week @ 2024-04-01

185 downloads per month
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

~21–39MB
~466K SLoC