Google Maps Nearby Places Tutorial | PART 2 ( Android Tutorials)

This is a continuation to Google Maps tutorials series. There are 5 previous parts to this tutorial. But I created a separate series for this because this nearby places tutorial will take around 4-5 parts to complete. If you want to watch the previous parts the links are below :

Nearby Places Tutorials :
Part 1 : https://youtu.be/_Oljjn1fIAc
Part 3 : https://youtu.be/paWEkAH4gSU

Google Maps Tutorials :
Watch previous parts HERE :
Part 1 : https://youtu.be/Ot8D-GZ8qfY
Part 2 : https://youtu.be/HD48FBwY9U0
Part 3 : https://youtu.be/rGkhzguavlc
Part 4 : https://youtu.be/T2R9ETdd24Y
Part 5 : https://youtu.be/AaLgEpDmJ6E

Code for DataParser.java class :

In the previous parts, we created the base for this tutorial. We first created a basic google maps activity where the default marker was set to Sydney, Australia. Then, in the next couple of parts we completed the get current location feature. In the last part, we created a search bar and a search button to search for a particular location in the google map.

In this series, I will show you how to search nearby places like hospitals, restaurants, schools etc. I am going to show you just these 3 things but you can modify it according to your needs.

In the first part, I created the 3 java classes that we need in this project. Then I added 3 buttons to the layout file to display hospitals, restaurants and schools. We set onClick properties and used switch case instead of using if-else. Then, we completed 2 of the classes which are DownloadUrl and DataParser.

In the DownloadUrl class, we created readUrl() method which reads URL using HTTPURLConnection object and file handling methods such as input stream and Buffered Reader. Then after reading the url, we needed to parse it. So, we created Data parser class. This class contains 3 methods viz., getPlace(), getPlaces() and parse().

The parse() method will parse the data and pass it to getPlaces() method which will store it in form of List of HashMap. The getPlaces() method will fetch each place one by one using for loop and then call getPlace() method for each place.
getPlace() method will convert the jsonArray to HashMap and add it to List of HashMap.

In the next parts of this tutorial, we are going to complete the GetNearbyPlacesData class and also MapsActivity class.

Find me here :

Google+ : https://plus.google.com/u/0/b/105970252005982916681/105970252005982916681/posts
Twitter : https://twitter.com/AndroidAcademy1
Facebook : https://www.facebook.com/AndroidAcademy8?ref=hl

Google Maps Nearby Places Tutorial | PART 1 ( Android Tutorials )

This is a continuation to Google Maps tutorials series. There are 5 previous parts to this tutorial. But I created a separate series for this because this nearby places tutorial will take around 4-5 parts to complete. If you want to watch the previous parts the links are below :

Nearby Places Tutorials :
Part 2 : https://youtu.be/ovlHW6Y1eQM
Part 3 : https://youtu.be/paWEkAH4gSU

Google Maps Tutorials :
Watch previous parts HERE :
Part 1 : https://youtu.be/Ot8D-GZ8qfY
Part 2 : https://youtu.be/HD48FBwY9U0
Part 3 : https://youtu.be/rGkhzguavlc
Part 4 : https://youtu.be/T2R9ETdd24Y
Part 5 : https://youtu.be/AaLgEpDmJ6E

Code for DataParser.java class :

In the previous parts, we created the base for this tutorial. We first created a basic google maps activity where the default marker was set to Sydney, Australia. Then, in the next couple of parts we completed the get current location feature. In the last part, we created a search bar and a search button to search for a particular location in the google map.

In this series, I will show you how to search nearby places like hospitals, restaurants, schools etc. I am going to show you just these 3 things but you can modify it according to your needs.

In the first part, I created the 3 java classes that we need in this project. Then I added 3 buttons to the layout file to display hospitals, restaurants and schools. We set onClick properties and used switch case instead of using if-else. Then, we completed 2 of the classes which are DownloadUrl and DataParser.

In the DownloadUrl class, we created readUrl() method which reads URL using HTTPURLConnection object and file handling methods such as input stream and Buffered Reader. Then after reading the url, we needed to parse it. So, we created Data parser class. This class contains 3 methods viz., getPlace(), getPlaces() and parse().

The parse() method will parse the data and pass it to getPlaces() method which will store it in form of List of HashMap. The getPlaces() method will fetch each place one by one using for loop and then call getPlace() method for each place.
getPlace() method will convert the jsonArray to HashMap and add it to List of HashMap.

In the next parts of this tutorial, we are going to complete the GetNearbyPlacesData class and also MapsActivity class.

Find me here :

Google+ : https://plus.google.com/u/0/b/105970252005982916681/105970252005982916681/posts
Twitter : https://twitter.com/AndroidAcademy1
Facebook : https://www.facebook.com/AndroidAcademy8?ref=hl

Channel: Tech Academy
Published: 2017-07-11 01:35:50
Duration: 16M2S
Views: 123
Likes: 4
Favorites: 0

Google Maps Nearby Places Tutorial | Part 3 ( Android Tutorials)

This is a continuation to Google Maps tutorials series. There are 5 previous parts to this tutorial. But I created a separate series for this because this nearby places tutorial will take around 4-5 parts to complete. If you want to watch the previous parts the links are below :

Nearby Places Tutorials :
Part 1 : https://youtu.be/_Oljjn1fIAc
Part 2 : https://youtu.be/ovlHW6Y1eQM

Google Maps Tutorials :
Watch previous parts HERE :
Part 1 : https://youtu.be/Ot8D-GZ8qfY
Part 2 : https://youtu.be/HD48FBwY9U0
Part 3 : https://youtu.be/rGkhzguavlc
Part 4 : https://youtu.be/T2R9ETdd24Y
Part 5 : https://youtu.be/AaLgEpDmJ6E

Code for DataParser.java class :

In the previous parts, we created the base for this tutorial. We first created a basic google maps activity where the default marker was set to Sydney, Australia. Then, in the next couple of parts we completed the get current location feature. In the last part, we created a search bar and a search button to search for a particular location in the google map.

In this series, I will show you how to search nearby places like hospitals, restaurants, schools etc. I am going to show you just these 3 things but you can modify it according to your needs.

In the first part, I created the 3 java classes that we need in this project. Then I added 3 buttons to the layout file to display hospitals, restaurants and schools. We set onClick properties and used switch case instead of using if-else. Then, we completed 2 of the classes which are DownloadUrl and DataParser.

In the DownloadUrl class, we created readUrl() method which reads URL using HTTPURLConnection object and file handling methods such as input stream and Buffered Reader. Then after reading the url, we needed to parse it. So, we created Data parser class. This class contains 3 methods viz., getPlace(), getPlaces() and parse().

The parse() method will parse the data and pass it to getPlaces() method which will store it in form of List of HashMap. The getPlaces() method will fetch each place one by one using for loop and then call getPlace() method for each place.
getPlace() method will convert the jsonArray to HashMap and add it to List of HashMap.

In the next parts of this tutorial, we are going to complete the GetNearbyPlacesData class and also MapsActivity class.

Find me here :

Google+ : https://plus.google.com/u/0/b/105970252005982916681/105970252005982916681/posts
Twitter : https://twitter.com/AndroidAcademy1
Facebook : https://www.facebook.com/AndroidAcademy8?ref=hl

Channel: Tech Academy
Published: 2017-07-11 16:45:52
Duration: 12M47S
Views: 73
Likes: 8
Favorites: 0

Google Maps Tutorial : Part 2 (Current location & Search Address)

In the last tutorial, we created a google maps app which is showing
a fixed location near nigeria. In this part, I will show you how to show your current location and you will also learn how to search for a particular address or place.

Source Code of full app : https://www.dropbox.com/sh/293c77aq7u23ebo/AAABWeCXBqs-3zdvKjm-x_Yfa?dl=0

Next part : http://youtu.be/J3R4b-KauuI

Previous tutorial : https://youtu.be/NHXa96-r8TY

In the next part, you will learn how to change the map type from normal to satellite, hybrid and how to zoom in and zoom out.

Other tutorials :
Speech Recognition App : http://www.youtube.com/watch?v=nzkrRQgCEmE

Login & Signup with Database : http://www.youtube.com/watch?v=NT1qxmqH1eM

Find me here :

Google+ : https://plus.google.com/u/0/b/105970252005982916681/105970252005982916681/posts
Twitter : https://twitter.com/AndroidAcademy1
Facebook : https://www.facebook.com/AndroidAcademy8?ref=hl

Channel: Tech Academy
Published: 2015-06-06 12:17:51
Duration: 14M43S
Views: 163877
Likes: 639
Favorites: 0

Google Maps Tutorial : Part 1 (Android Tutorials)

In this tutorial, you’ll learn how to create a basic google maps app using google maps v2 plugin. Android Studio makes it all easier by making everything ready for you. You just have to create a key and copy it in the app.

I will teach you how to do that in this tutorial. It will show only a fixed location near nigeria. In the next part, I will show you how to show your current location.

Source Code of full app : https://www.dropbox.com/sh/293c77aq7u23ebo/AAABWeCXBqs-3zdvKjm-x_Yfa?dl=0
(Above Link is not working, I apologize for the inconvenience)

Next part : http://youtu.be/dr0zEmuDuIk

Other Tutorials :
How to check SQLite Database values :
https://youtu.be/w_SWdnE4pPI

Speech Recognition App Tutorial :
https://youtu.be/nzkrRQgCEmE

Find me here :

Google+ : https://plus.google.com/u/0/b/105970252005982916681/105970252005982916681/posts
Twitter : https://twitter.com/AndroidAcademy1
Facebook : https://www.facebook.com/AndroidAcademy8?ref=hl

Channel: Tech Academy
Published: 2015-06-05 13:32:26
Duration: 5M53S
Views: 218904
Likes: 679
Favorites: 0

Updated Google Maps Tutorial | PART 5 (Android Tutorials)

This is a video tutorial series in which you will learn how to create android app using google maps activity.

In the previous 4 parts, we completed the get current location part of this tutorial.
In this video, I will show you how to add a search bar and a search button to the maps activity and how to search for a particular location using that.
First, we are going to work on the xml file. We will add a text field and a button. User will enter the location he wants to search in the google maps in the text field and then the user will click on the search button.

We will check if the user has entered anything in the text field or not. This part is called exception handling. Once, we have made sure that the user entered something in the search bar, then we can fetch that string and search it using Geocoder class.

Find more information about Geocoder class here :
http://developer.android.com

Watch previous parts HERE :
1) Part 1 : https://youtu.be/Ot8D-GZ8qfY
2) Part 2 : https://youtu.be/HD48FBwY9U0
3) Part 3 : https://youtu.be/rGkhzguavlc
4) Part 4 : https://youtu.be/T2R9ETdd24Y

Find me here :

Google+ : https://plus.google.com/u/0/b/105970252005982916681/105970252005982916681/posts
Twitter : https://twitter.com/AndroidAcademy1
Facebook : https://www.facebook.com/AndroidAcademy8?ref=hl

Channel: Tech Academy
Published: 2017-07-05 21:55:52
Duration: 11M55S
Views: 438
Likes: 12
Favorites: 0

Leave a Reply

Your email address will not be published. Required fields are marked *