An easy implementation of Google Places API in Android https://developers.google.com/places/web-service/
Branch: master
Clone or download
Latest commit 911d720 Dec 8, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app updated location param Dec 8, 2016
gradle/wrapper fixed types in PlaceType Dec 5, 2016
placesAPI
.gitignore initial commit Oct 6, 2016
README.md Update README.md Dec 8, 2016
build.gradle fixed types in PlaceType Dec 5, 2016
gradle.properties initial commit Oct 6, 2016
gradlew initial commit Oct 6, 2016
gradlew.bat initial commit Oct 6, 2016
settings.gradle initial commit Oct 6, 2016

README.md

Android-Google-Places-API

Android Arsenal

This project allows you get places in a given radius and other Places API parameter using Google Places API.

Sample

The sample makes use of the Google Places API for Android in order to provide a real life example of how the library can be used. Dropbox Link

Download

Grab via Maven:

<dependency>
  <groupId>noman.placesapi</groupId>
  <artifactId>placesAPI</artifactId>
  <version>1.0.0</version>
</dependency>

or Gradle:

    compile 'noman.placesapi:placesAPI:1.1.3'

Usage

To get places within a radius, pass the central point , API key and just execute the NRPlaces Object.

*You can execute the task in this manner. ( See the example for more details on the exact implementation)

       new NRPlaces.Builder()
                .listener(this)
                .key("KEY")
                .latlng(33.721328, 73.057838)
                .radius(500)
                .type(PlaceType.GYM)
                .build()
                .execute();
        

Callbacks

    void onPlacesFailure(PlacesException e);

    void onPlacesStart();

    void onPlacesSuccess(List<Place> places);

    void onPlacesFinished();

License

Copyright 2016 Noman Rafique

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.