google_maps_api
Version, currently 0.2.12 versions
- 0.2.1latestNov 7, 2016
- 0.2.0not indexedJul 4, 2019
github.com/fridgerator/google_maps_api
Crystal library for the Google Maps API.
18 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
google_maps_api:
github: fridgerator/google_maps_api
version: ~> 0.2.1Then run:
shards installshard.yml
- Crystal
- no constraint declared
- License
- MIT
- Author
- Nick Franken <shnick@gmail.com>
Dependencies
Development Dependencies
README
# GoogleMapsApi [](https://travis-ci.org/fridgerator/google_maps_api)
WORK IN PROGRESS
Crystal library for the Google Maps API.
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
google_maps_api:
github: fridgerator/google_maps_api
```
## Usage
```crystal
require "google_maps_api"
```
#### Geocoding
```crystal
GoogleMapsApi::Geocoding.address_search("1111 North 20th")
GoogleMapsApi::Geocoding.latlng_search(40.714224, -73.961452)
GoogleMapsApi::Geocoding.place_search("ChIJd8BlQ2BZwokRAFUEcm_qrcA")
```
#### Places
**places API requires an API key (set using ENV["GOOGLE_API_KEY"])**
```crystal
GoogleMapsApi::Place.nearby(40.714224, -73.961452, {:radius => 1000})
place = GoogleMapsApi::Place.details("ChIJQSrBBv1bwokRbNfFHCnyeYI")
GoogleMapsApi::Place.nearby(place, {:radius => 1000})
```
#### Directions
```crystal
GoogleMapsApi::Directions.get(39.6684948, -79.6375071, 40.4313473, -80.0505404)
```
Using 2 places:
```crystal
GoogleMapsApi::Directions.get(origin_place, dest_place)
```
## Contributing
1. Fork it ( https://github.com/[your-github-name]/google_maps_api/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request
## Contributors
- [fridgerator](https://github.com/fridgerator) Nick Franken - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.2.1- Tagged
- Nov 7, 2016
- Commit
28fe71608d93- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/fridgerator/google_maps_api
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 2