All Projects → amrfaissal → googlemaps-services

amrfaissal / googlemaps-services

Licence: MIT License
📍Ruby client library for Google Maps API Web Services

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to googlemaps-services

SimplecURL
Easy to use HTTP Client for PHP
Stars: ✭ 14 (+0%)
Mutual labels:  http-client
http-interceptors
The Web apps in this monorepo make HTTP requests and require uniform consistency in how they are executed and handled. This monorepo demonstrates the same app written with Angular and with Svelte. Each app uses HTTP interceptors. The Angular app uses HttpClient and its interceptors while the Svelte app uses Axios and its interceptors.
Stars: ✭ 46 (+228.57%)
Mutual labels:  http-client
LocationAware
Set alarms for location in map
Stars: ✭ 34 (+142.86%)
Mutual labels:  google-maps
ELWebService
A lightweight HTTP networking framework for Swift
Stars: ✭ 89 (+535.71%)
Mutual labels:  http-client
android-near-by-places
Near by places using google map api
Stars: ✭ 24 (+71.43%)
Mutual labels:  google-maps
carto-react
CARTO for React packages
Stars: ✭ 17 (+21.43%)
Mutual labels:  google-maps
desktop
A native GUI application that makes it easy to explore and test Serverless Framework applications built on AWS Lambda.
Stars: ✭ 42 (+200%)
Mutual labels:  http-client
gohttp
A simple to use golang http client
Stars: ✭ 47 (+235.71%)
Mutual labels:  http-client
monolog-http
A collection of monolog handlers that use a PSR-18 HTTP Client to send your logs
Stars: ✭ 34 (+142.86%)
Mutual labels:  http-client
SimplePlacePicker
Android place picker module for searching and selecting a location on google maps
Stars: ✭ 42 (+200%)
Mutual labels:  google-maps
rq
A nicer interface for golang stdlib HTTP client
Stars: ✭ 40 (+185.71%)
Mutual labels:  http-client
nativescript-http
The best way to do HTTP requests in NativeScript, a drop-in replacement for the core HTTP with important improvements and additions like proper connection pooling, form data support and certificate pinning
Stars: ✭ 32 (+128.57%)
Mutual labels:  http-client
google-maps-statistics
Visualizing Geographic Statistical Data with Google Maps
Stars: ✭ 32 (+128.57%)
Mutual labels:  google-maps
google-streetview-images
Pull google streetview panoramic images along a route.
Stars: ✭ 45 (+221.43%)
Mutual labels:  google-maps
MultipartEncoder
C++ implementation of encoding HTTP multipart/form-data into a string buffer for POST action in HTTP clients
Stars: ✭ 45 (+221.43%)
Mutual labels:  http-client
lhc
🚀 Advanced HTTP Client for Ruby. Fueled with interceptors.
Stars: ✭ 32 (+128.57%)
Mutual labels:  http-client
openui5-googlemaps
Openui5 Googlemaps library
Stars: ✭ 58 (+314.29%)
Mutual labels:  google-maps
minireq
A minimal request library for the browser
Stars: ✭ 42 (+200%)
Mutual labels:  http-client
fetchx
Beautiful way to fetch data in React
Stars: ✭ 71 (+407.14%)
Mutual labels:  http-client
fetch-wrap
extend WHATWG fetch wrapping it with middlewares
Stars: ✭ 21 (+50%)
Mutual labels:  http-client

Ruby Client for Google Maps Services

Build Status Coverage Status Gem Version

Description

This library brings the Google Maps API Web Services to your Ruby/RoR application.

The Ruby Client for Google Maps Services is a Ruby Client library for the following Google Maps APIs:

It supports both JSON and XML response formats.

Please make sure you are using the latest release to get the newest features.

Requirements

  • Ruby 2.1 or later.
  • A Google Maps API key.
  • Client ID and Client Secret (for Google Maps APIs Premium Plan customers).

Installation

Add this line to your application's Gemfile:

gem 'googlemaps-services'

And then execute:

$ bundle

Or install it yourself as:

$ gem install googlemaps-services

Documentation

View the reference documentation.

Usage

This example uses the Directions API with an API key:

  require 'googlemaps/services/client'
  require 'googlemaps/services/directions'

  include GoogleMaps::Services

  client = GoogleClient.new(key: 'Add API key here', response_format: :json)
  directions = Directions.new(client)

  # Get directions via public transit in JSON format.
  # To return the result in XML format, change the Client response_format parameter to :xml.
  result = directions.query(origin: '75 9th Ave, New York, NY',
                            destination: 'MetLife Stadium Dr East Rutherford, NJ 07073',
                            mode: 'transit',
                            departure_time: Time.now)
  # Print the result
  puts result

For more usage examples, check out the reference documentation.

Contributing

Bug reports, Pull requests and Stars are always welcome. For bugs and feature requests, please create an issue.

Donate

  • Donate
  • Bitcoin: 1EdwqtXhojU4LGhTwBLT1JpTb1d71oA89o

License

The gem is available as open source under the terms of the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].