Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get all the department stores present in a city in android using google places?

Hi I have developed an app which uses google-places API to get the list of nearby department stores. This works perfectly and I am using this tutorial to get the places, but now I need to add one more functionality to this ie; is it possible to get the details of all the department stores present in a particular city, if so how to do this.

If it is not possible, how to go about it. I have searched the internet, but I have not able to find anything useful.

To summarize I need to have 3 buttons in my app. 
1. Displays the map which displays the nearby department stores.
2. Displays the nearby stores in the form of a list.
3. Displays the list of stores in a particular city.

I am new to Android and don't understand how to do all the above. I would appreciate if anyone can guide me or post some tutorials.

Thanks.

like image 323
user1844638 Avatar asked Feb 05 '13 06:02

user1844638


People also ask

How do I get data from Google Maps places API?

Go to APIs & Services → Dashboard → Enable APIs & Services at the top and Choose Maps Javascript API from the API Library. This will open up the Map JavaScript API page, and Enable it.


1 Answers

I think it is better to maintain another database( your own ) for your app. In your database store all types of information including latitude and longitude. Then query on your database from your app. you can use JSON parser to retrieve data from database.

Happy Coding

like image 82
BeingMIAkashs Avatar answered Nov 15 '22 00:11

BeingMIAkashs