Giter Club home page Giter Club logo

android-google-places-api's Introduction

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.

android-google-places-api's People

Contributors

nomanr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

android-google-places-api's Issues

Get Photos and Rating

Hi,
please can you help mem to get Places photos and Rating...adding capabilities to you library?

Thanks

Error while adding library

When I add the library in gradle when synchronizing it of that error

Error:Execution failed for task ':app:processDebugManifest'.

Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.xml:6:9-36
is also present at [com.appolica:interactive-info-window:1.0.4] AndroidManifest.xml:29:9-35 value=(true).
Suggestion: add 'tools:replace="android:allowBackup"' to element at AndroidManifest.xml:5:5-18:19 to override.

How can I solve it?

Invalid Place Types

Hey, I just started using your library and it works really well but some of the PlaceTypes keep saying they're invalid even though I see them listed in the PlaceType class. Do you know why that is?

PlacesListener.onPlacesFailure called twice on PlacesException

Hi,

Thanks for this great library, I just want to know if it was intended that onPlacesFailure is called twice when a PlacesException occurs?

I found this functionality a little confusing at first, but looking at AbstractPlaces it seems to make sense.

 } catch (PlacesException e) {
            exception = e;
            dispatchOnFailure(e); // Is this necessary
            return null;
 protected void onPostExecute(List<Place> places) {
        if (places == null) {
            dispatchOnFailure(exception); // when its called here later
        } else {
            dispatchOnFinished();
        }
    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.