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

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: 191
Likes: 7
Favorites: 0

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

Channel: Tech Academy
Published: 2017-07-11 03:47:41
Duration: 11M16S
Views: 134
Likes: 9
Favorites: 0

Updated Google Maps Tutorial | PART 1 ( Android Tutorials )

This is an updated version of my previous tutorial. I received a lot of requests to upload an updated version of this tutorial.
Later, we will learn how to track a moving person’s location and some other things too.

Watch next parts HERE :
PART 2 : https://youtu.be/HD48FBwY9U0
PART 3 : https://youtu.be/rGkhzguavlc
PART 4 : https://youtu.be/T2R9ETdd24Y
PART 5 : https://youtu.be/AaLgEpDmJ6E

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-06-17 23:04:30
Duration: 4M49S
Views: 1216
Likes: 24
Favorites: 0

Updated Google Maps Tutorial | PART 4 (Android Tutorials)

In the previous part, we completed the checkLocationPermission() method. In this part, we are going to create one more method and our get current location part of this tutorial series will get over.

The method that we are going to create in this part of the tutorial is to check if the permission is granted or not. You may have noticed that, when we open google maps app, it asks for user permission to access GPS services. So, we are basically going to create that dialog box where the app will ask for user’s permission to access location/GPS services. If the user declines, it will show a popup message that the permission was declined, and we won’t be able to check our current location.

Then, we are going to call the checkLocationPermission() method in the onCreate() method.

How to enable USB debugging : (I apologize for the bad audio and video quality)
https://youtu.be/uu6Mrh1iHyQ

Watch other parts here :
Part 1 : https://youtu.be/Ot8D-GZ8qfY
Part 2 : https://youtu.be/HD48FBwY9U0
Part 3 : https://youtu.be/rGkhzguavlc
Part 5 : https://youtu.be/AaLgEpDmJ6E

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-06-26 00:35:30
Duration: 7M11S
Views: 679
Likes: 21
Favorites: 0

Colocar Google Maps en tu aplicación de Android – Tutorial

Clic aqui para todos nuestros cursos y tutoriales: ►http://codigofacilito.com/

Siguenos en Twitter:
http://twitter.com/codigofacilito

“Like” en Facebook:
http://facebook.com/codigofacilito

—–

MAS CURSOS de CodigoFacilito:

Curso para crear una pagina web en HTML5:
http://bit.ly/PaginaWebHTML5

Curso de Ruby
http://bit.ly/RubyFacilito

Curso de Ruby on Rails
http://bit.ly/RailsFacilito

Curso de Python:
http://bit.ly/PythonFacilito

Curso de HTML5:
http://bit.ly/HTML5Facilito

Curso de WordPress (Crea un tema desde cero):
http://bit.ly/WordPressFacilito

Curso de CSS:
http://bit.ly/CSSFacilito

Curso de PHP:
http://bit.ly/PHPFacilito

Curso de JavaScript y jQuery:
http://bit.ly/jQueryFacilito

Curso de Java:
http://bit.ly/JavaFacilito

Curso de C++:
http://bit.ly/CFacilito

Curso de Xcode:
http://bit.ly/XcodeFacilito

—–

Sitio web:
http://codigofacilito.com/

Siguenos en Twitter:
http://twitter.com/codigofacilito

“Like” en Facebook:
http://facebook.com/codigofacilito

Suscribete en YouTube:
http://bit.ly/qHEewR

Unete al Newsletter:
http://bit.ly/CorreoFacilito

—–

►¿Quieres ser tutor en CodigoFacilito?
Escribeme a alejandroruibal arroba gmail.com y cuentame porque te gustaria participar en nuestro proyecto, que curso te gustaria impartir y un poco de tu experiencia como programador. Es una excelente manera de compartir tus conocimientos con la comunidad mientras al mismo tiempo generas un ingreso extra.

Channel: codigofacilito
Published: 2016-09-14 16:42:22
Duration: 15M
Views: 14537
Likes: 165
Favorites: 0

Leave a Reply

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