SlideShare une entreprise Scribd logo
1  sur  6
Project 4 Task 2 – Place InSights app on Android
By Rohan Nanda
Description:
My application makes use of 2 APIs. One is Google’s Places API, and the other is Trippin’IN API. My app
mashes up information from both these APIs to present social channel details of the closest matched
searchstring. The search could be for a place to eat, drink, party, shop or go outdoors in some city. I
present the number of checkins on facebook, facebook likes, rankings in top categories and subcategories, and an Instagram photo feed.
I use longitude and latitude coordinates from places API, along with other details, and use that as input
in trippin’IN’s API.
Note:
a. Only popular cities work in the input. Although Google places’ library is vast, Trippin’IN’s database of
places is limited. Pittsburgh is not in its database.
b. It is assumed that the user will enter good valid data as input. Fault tolerance is handled to a fair
extent.
c. Examples of searches are:
Restaurants: Penelope, California Pizza Kitchen in New York
Party places:Pacha London
d. There is a cap of 50 requests for Places API per 24 hours.

2. Implement a native Android application
The name of my native Android application project in Eclipse is:
PlaceInSightsAndroid
2.1My application uses TextView, EditText, Button, and ImageView. See main.xml for
details of how they are incorporated into the RelativeLayout.
Here is a screenshot of the layout before the picture has been fetched.
1.2. Requires input from the user
Here is a screenshot of the user searching for the night club: Pacha London

1.3. Makes an HTTP request (using an appropriate HTTP method) to your web app
My application does the HTTP request in PlaceInsightsServlet.java. The HTTP request is:
"http://1.placeinsights12.appspot.com/Place_InSightsServlet?searchstring=penelope"+search
where search is the user's search term.
The search method makes this request of my web application, parses the returned
XML to get the details to show the user
1.4. Receives and parses an XML or JSON formatted reply from the web app
My good response is:
<response>
<title>Pacha London</title>
<icon/>
<open_now/>
<imageurl>
http://graph.facebook.com/180159821999925/picture?type=large
</imageurl>
<maincategory>Party</maincategory>
<subcategory>Nightclub</subcategory>
<totalcheckins>5408</totalcheckins>
<totalwerehere>49673</totalwerehere>
<totallikes>32394</totallikes>
<rank>8</rank>
<total>60</total>
<gallery>
<photo0>
http://distilleryimage0.s3.amazonaws.com/3f650200473211e39a6122000ae8039f_6.j
pg
</photo0>
<photo1>
http://distilleryimage5.s3.amazonaws.com/a4b5ea0c473211e3883d12b02091f087_6.j
pg
</photo1>
<photo2>
http://distilleryimage1.s3.amazonaws.com/149a2fa4473311e3b29022000ab482f1_6.j
pg
</photo2>
<photo3>
http://origincache-frc.fbcdn.net/1390354_541811592579073_1379879032_a.jpg
</photo3>
<photo4>
http://distilleryimage1.s3.amazonaws.com/028efb7444f811e3964f22000ae801df_6.j
pg
</photo4>
<photo5>
http://distilleryimage2.s3.amazonaws.com/d085d64a455e11e3a30c22000a1f9683_6.j
pg
</photo5>
</gallery>
</response>

My bad response is:
<response>
<error>Your text search didn't return results.</error>
</response>
1.5. Displays new information to the user
Find below a screen shot of the output:

1.6. Is repeatable (I.e. the user can repeatedly reuse the application without
restarting it.)
2. Implement a web application, deployed to Google App Engine
The name of the Google App Engine project in Eclipse is:
PlaceInSights
2.1. Uses the MVC design pattern
In my web app project:
Model: PlaceInSightsModel.java
View: prompt.jsp
Controller: PlaceInSightsServlet.java
2.2. Receives an HTTP request from the native Android application
PlaceInSightsServlet.java receives the HTTP request with
the argument "search". It passes this search string on to the model.
2.3. Executes business logic appropriate to your application
PlaceInSightsModel.java does an HTTP request to:
2 APIs,
Trippin’ Ins API:
http://api.v1.trippinin.com/match/[place name]?coordinates=[lat,lng]&KEY=[your API key]

and Google’s places API.It then parses the XML response from Google api, puts the coordinates and
closest relevant search result in the input of TRIPPIN’IN’s API, and extracts the parts it needs to respond
to the Android application. I parse JSON from Trippin’in.
2.4. Replies to the Android application with an XML or JSON formatted response.
I format the response using in-built argument setting while outputting. I set the content type in the
servlet PlacesInSightsModelto “text/xml”.

Contenu connexe

Similaire à Place InSights - Social Analytics App on Android

Deep linking slides
Deep linking slidesDeep linking slides
Deep linking slidesPersonagraph
 
Fire Eagle presentation for IIT Delhi Hack U event
Fire Eagle presentation for IIT Delhi Hack U eventFire Eagle presentation for IIT Delhi Hack U event
Fire Eagle presentation for IIT Delhi Hack U eventarnab.nandi
 
An Introduction to Deep Linking and App Indexing Codelab
An Introduction to Deep Linking and App Indexing CodelabAn Introduction to Deep Linking and App Indexing Codelab
An Introduction to Deep Linking and App Indexing CodelabJarek Wilkiewicz
 
Leynard quizon work portfolio (2012 to 2014)
Leynard quizon work portfolio (2012 to 2014)Leynard quizon work portfolio (2012 to 2014)
Leynard quizon work portfolio (2012 to 2014)Leynard Quizon
 
UaMobitech - App Links and App Indexing API
UaMobitech - App Links and App Indexing APIUaMobitech - App Links and App Indexing API
UaMobitech - App Links and App Indexing APIMatteo Bonifazi
 
Google & Bing App Indexing - SMX Munich 2016
Google & Bing App Indexing - SMX Munich 2016Google & Bing App Indexing - SMX Munich 2016
Google & Bing App Indexing - SMX Munich 2016MobileMoxie
 
MGT5419 User Experience Design.docx
MGT5419 User Experience Design.docxMGT5419 User Experience Design.docx
MGT5419 User Experience Design.docxstirlingvwriters
 
Directi Case Study Contest 2010- NMIMS United Colors
Directi Case Study Contest 2010- NMIMS United ColorsDirecti Case Study Contest 2010- NMIMS United Colors
Directi Case Study Contest 2010- NMIMS United ColorsDirecti Group
 
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015MobileMoxie
 
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015Suzzicks
 
Android Marshmallow APIs and Changes
Android Marshmallow APIs and ChangesAndroid Marshmallow APIs and Changes
Android Marshmallow APIs and ChangesMalwinder Singh
 
SEO Team Lunch & Learn - App Indexing
SEO Team Lunch & Learn - App IndexingSEO Team Lunch & Learn - App Indexing
SEO Team Lunch & Learn - App IndexingStephanie Wallace
 
Survey on Fraud Malware Detection in Google Play Store
Survey on Fraud Malware Detection in Google Play Store         Survey on Fraud Malware Detection in Google Play Store
Survey on Fraud Malware Detection in Google Play Store IRJET Journal
 
Mobile Apps vs. Mobile Web
Mobile Apps vs. Mobile WebMobile Apps vs. Mobile Web
Mobile Apps vs. Mobile WebBranded3
 
Programming Social Applications
Programming Social ApplicationsProgramming Social Applications
Programming Social ApplicationsJonathan LeBlanc
 

Similaire à Place InSights - Social Analytics App on Android (20)

Deep linking slides
Deep linking slidesDeep linking slides
Deep linking slides
 
WDI-Project-2-README
WDI-Project-2-READMEWDI-Project-2-README
WDI-Project-2-README
 
Fire Eagle presentation for IIT Delhi Hack U event
Fire Eagle presentation for IIT Delhi Hack U eventFire Eagle presentation for IIT Delhi Hack U event
Fire Eagle presentation for IIT Delhi Hack U event
 
Yahoo! Geo Technologies-IITD
Yahoo! Geo Technologies-IITDYahoo! Geo Technologies-IITD
Yahoo! Geo Technologies-IITD
 
An Introduction to Deep Linking and App Indexing Codelab
An Introduction to Deep Linking and App Indexing CodelabAn Introduction to Deep Linking and App Indexing Codelab
An Introduction to Deep Linking and App Indexing Codelab
 
Dharmpal Verma Resume
Dharmpal Verma ResumeDharmpal Verma Resume
Dharmpal Verma Resume
 
Leynard quizon work portfolio (2012 to 2014)
Leynard quizon work portfolio (2012 to 2014)Leynard quizon work portfolio (2012 to 2014)
Leynard quizon work portfolio (2012 to 2014)
 
App Deep Linking
App Deep LinkingApp Deep Linking
App Deep Linking
 
UaMobitech - App Links and App Indexing API
UaMobitech - App Links and App Indexing APIUaMobitech - App Links and App Indexing API
UaMobitech - App Links and App Indexing API
 
Google & Bing App Indexing - SMX Munich 2016
Google & Bing App Indexing - SMX Munich 2016Google & Bing App Indexing - SMX Munich 2016
Google & Bing App Indexing - SMX Munich 2016
 
MGT5419 User Experience Design.docx
MGT5419 User Experience Design.docxMGT5419 User Experience Design.docx
MGT5419 User Experience Design.docx
 
Directi Case Study Contest 2010- NMIMS United Colors
Directi Case Study Contest 2010- NMIMS United ColorsDirecti Case Study Contest 2010- NMIMS United Colors
Directi Case Study Contest 2010- NMIMS United Colors
 
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015
 
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015
Life After Mobilegeddon: App Deep Linking Strategies - Pubcon October 2015
 
supriyapandey_resume
supriyapandey_resumesupriyapandey_resume
supriyapandey_resume
 
Android Marshmallow APIs and Changes
Android Marshmallow APIs and ChangesAndroid Marshmallow APIs and Changes
Android Marshmallow APIs and Changes
 
SEO Team Lunch & Learn - App Indexing
SEO Team Lunch & Learn - App IndexingSEO Team Lunch & Learn - App Indexing
SEO Team Lunch & Learn - App Indexing
 
Survey on Fraud Malware Detection in Google Play Store
Survey on Fraud Malware Detection in Google Play Store         Survey on Fraud Malware Detection in Google Play Store
Survey on Fraud Malware Detection in Google Play Store
 
Mobile Apps vs. Mobile Web
Mobile Apps vs. Mobile WebMobile Apps vs. Mobile Web
Mobile Apps vs. Mobile Web
 
Programming Social Applications
Programming Social ApplicationsProgramming Social Applications
Programming Social Applications
 

Dernier

Unveiling SOCIO COSMOS: Where Socializing Meets the Stars
Unveiling SOCIO COSMOS: Where Socializing Meets the StarsUnveiling SOCIO COSMOS: Where Socializing Meets the Stars
Unveiling SOCIO COSMOS: Where Socializing Meets the StarsSocioCosmos
 
Protecting Your Little Explorer at Home!
Protecting Your Little Explorer at Home!Protecting Your Little Explorer at Home!
Protecting Your Little Explorer at Home!andrekr997
 
fraud storyboards powerpoint media project
fraud storyboards powerpoint media projectfraud storyboards powerpoint media project
fraud storyboards powerpoint media project17mos052
 
办理伯明翰大学毕业证书文凭学位证书
办理伯明翰大学毕业证书文凭学位证书办理伯明翰大学毕业证书文凭学位证书
办理伯明翰大学毕业证书文凭学位证书saphesg8
 
Models Call Girls Shettihalli - 7001305949 Escorts Service 50% Off with Cash ...
Models Call Girls Shettihalli - 7001305949 Escorts Service 50% Off with Cash ...Models Call Girls Shettihalli - 7001305949 Escorts Service 50% Off with Cash ...
Models Call Girls Shettihalli - 7001305949 Escorts Service 50% Off with Cash ...jicagig173
 
The--Fraud: Netflix Original Media Pitch
The--Fraud: Netflix Original Media PitchThe--Fraud: Netflix Original Media Pitch
The--Fraud: Netflix Original Media Pitch17mos052
 
AI Virtual Influencers: The Future of Influencer Marketing
AI Virtual Influencers:  The Future of Influencer MarketingAI Virtual Influencers:  The Future of Influencer Marketing
AI Virtual Influencers: The Future of Influencer MarketingCut-the-SaaS
 
Music Video Codes and Conventions 2 .pptx
Music Video Codes and Conventions 2 .pptxMusic Video Codes and Conventions 2 .pptx
Music Video Codes and Conventions 2 .pptxjenrobinson12
 
Upgrade Your Twitter Presence with Socio Cosmos
Upgrade Your Twitter Presence with Socio CosmosUpgrade Your Twitter Presence with Socio Cosmos
Upgrade Your Twitter Presence with Socio CosmosSocioCosmos
 
Amplify Your Brand with Our Tailored Social Media Marketing Services
Amplify Your Brand with Our Tailored Social Media Marketing ServicesAmplify Your Brand with Our Tailored Social Media Marketing Services
Amplify Your Brand with Our Tailored Social Media Marketing ServicesNetqom Solutions
 
When-technology-and-Humanity-Cross-1.pptx
When-technology-and-Humanity-Cross-1.pptxWhen-technology-and-Humanity-Cross-1.pptx
When-technology-and-Humanity-Cross-1.pptxReaper61
 
O9654467111 Call Girls In Shahdara Women Seeking Men
O9654467111 Call Girls In Shahdara Women Seeking MenO9654467111 Call Girls In Shahdara Women Seeking Men
O9654467111 Call Girls In Shahdara Women Seeking MenSapana Sha
 
Call Girls In Dwarka ⏩7838079806 ⏩Escort Service In Patel Nagar Delhi
Call Girls In Dwarka ⏩7838079806 ⏩Escort Service In Patel Nagar DelhiCall Girls In Dwarka ⏩7838079806 ⏩Escort Service In Patel Nagar Delhi
Call Girls In Dwarka ⏩7838079806 ⏩Escort Service In Patel Nagar Delhidelhiescort
 
THE FRAUD NETFLIX ORIGINAL MEDIA PITCH PROJECT
THE FRAUD NETFLIX ORIGINAL MEDIA PITCH PROJECTTHE FRAUD NETFLIX ORIGINAL MEDIA PITCH PROJECT
THE FRAUD NETFLIX ORIGINAL MEDIA PITCH PROJECT17mos052
 
VIP Moti Bagh Call Girls Free Doorstep Delivery 9873777170
VIP Moti Bagh Call Girls Free Doorstep Delivery 9873777170VIP Moti Bagh Call Girls Free Doorstep Delivery 9873777170
VIP Moti Bagh Call Girls Free Doorstep Delivery 9873777170Komal Khan
 
YouScan Company Overview - Social Media Listening with Visual Insights.pdf
YouScan Company Overview - Social Media Listening with Visual Insights.pdfYouScan Company Overview - Social Media Listening with Visual Insights.pdf
YouScan Company Overview - Social Media Listening with Visual Insights.pdfAlexander Sirach
 

Dernier (19)

Unveiling SOCIO COSMOS: Where Socializing Meets the Stars
Unveiling SOCIO COSMOS: Where Socializing Meets the StarsUnveiling SOCIO COSMOS: Where Socializing Meets the Stars
Unveiling SOCIO COSMOS: Where Socializing Meets the Stars
 
Protecting Your Little Explorer at Home!
Protecting Your Little Explorer at Home!Protecting Your Little Explorer at Home!
Protecting Your Little Explorer at Home!
 
fraud storyboards powerpoint media project
fraud storyboards powerpoint media projectfraud storyboards powerpoint media project
fraud storyboards powerpoint media project
 
办理伯明翰大学毕业证书文凭学位证书
办理伯明翰大学毕业证书文凭学位证书办理伯明翰大学毕业证书文凭学位证书
办理伯明翰大学毕业证书文凭学位证书
 
Models Call Girls Shettihalli - 7001305949 Escorts Service 50% Off with Cash ...
Models Call Girls Shettihalli - 7001305949 Escorts Service 50% Off with Cash ...Models Call Girls Shettihalli - 7001305949 Escorts Service 50% Off with Cash ...
Models Call Girls Shettihalli - 7001305949 Escorts Service 50% Off with Cash ...
 
The--Fraud: Netflix Original Media Pitch
The--Fraud: Netflix Original Media PitchThe--Fraud: Netflix Original Media Pitch
The--Fraud: Netflix Original Media Pitch
 
young Call girls in Dwarka sector 23🔝 9953056974 🔝 Delhi escort Service
young Call girls in Dwarka sector 23🔝 9953056974 🔝 Delhi escort Serviceyoung Call girls in Dwarka sector 23🔝 9953056974 🔝 Delhi escort Service
young Call girls in Dwarka sector 23🔝 9953056974 🔝 Delhi escort Service
 
Hot Sexy call girls in Ramesh Nagar🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Ramesh Nagar🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Ramesh Nagar🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Ramesh Nagar🔝 9953056974 🔝 Delhi escort Service
 
AI Virtual Influencers: The Future of Influencer Marketing
AI Virtual Influencers:  The Future of Influencer MarketingAI Virtual Influencers:  The Future of Influencer Marketing
AI Virtual Influencers: The Future of Influencer Marketing
 
Music Video Codes and Conventions 2 .pptx
Music Video Codes and Conventions 2 .pptxMusic Video Codes and Conventions 2 .pptx
Music Video Codes and Conventions 2 .pptx
 
Upgrade Your Twitter Presence with Socio Cosmos
Upgrade Your Twitter Presence with Socio CosmosUpgrade Your Twitter Presence with Socio Cosmos
Upgrade Your Twitter Presence with Socio Cosmos
 
Amplify Your Brand with Our Tailored Social Media Marketing Services
Amplify Your Brand with Our Tailored Social Media Marketing ServicesAmplify Your Brand with Our Tailored Social Media Marketing Services
Amplify Your Brand with Our Tailored Social Media Marketing Services
 
When-technology-and-Humanity-Cross-1.pptx
When-technology-and-Humanity-Cross-1.pptxWhen-technology-and-Humanity-Cross-1.pptx
When-technology-and-Humanity-Cross-1.pptx
 
O9654467111 Call Girls In Shahdara Women Seeking Men
O9654467111 Call Girls In Shahdara Women Seeking MenO9654467111 Call Girls In Shahdara Women Seeking Men
O9654467111 Call Girls In Shahdara Women Seeking Men
 
Call Girls In Dwarka ⏩7838079806 ⏩Escort Service In Patel Nagar Delhi
Call Girls In Dwarka ⏩7838079806 ⏩Escort Service In Patel Nagar DelhiCall Girls In Dwarka ⏩7838079806 ⏩Escort Service In Patel Nagar Delhi
Call Girls In Dwarka ⏩7838079806 ⏩Escort Service In Patel Nagar Delhi
 
THE FRAUD NETFLIX ORIGINAL MEDIA PITCH PROJECT
THE FRAUD NETFLIX ORIGINAL MEDIA PITCH PROJECTTHE FRAUD NETFLIX ORIGINAL MEDIA PITCH PROJECT
THE FRAUD NETFLIX ORIGINAL MEDIA PITCH PROJECT
 
VIP Moti Bagh Call Girls Free Doorstep Delivery 9873777170
VIP Moti Bagh Call Girls Free Doorstep Delivery 9873777170VIP Moti Bagh Call Girls Free Doorstep Delivery 9873777170
VIP Moti Bagh Call Girls Free Doorstep Delivery 9873777170
 
looking for escort 9953056974 Low Rate Call Girls In Vinod Nagar
looking for escort 9953056974 Low Rate Call Girls In  Vinod Nagarlooking for escort 9953056974 Low Rate Call Girls In  Vinod Nagar
looking for escort 9953056974 Low Rate Call Girls In Vinod Nagar
 
YouScan Company Overview - Social Media Listening with Visual Insights.pdf
YouScan Company Overview - Social Media Listening with Visual Insights.pdfYouScan Company Overview - Social Media Listening with Visual Insights.pdf
YouScan Company Overview - Social Media Listening with Visual Insights.pdf
 

Place InSights - Social Analytics App on Android

  • 1. Project 4 Task 2 – Place InSights app on Android By Rohan Nanda Description: My application makes use of 2 APIs. One is Google’s Places API, and the other is Trippin’IN API. My app mashes up information from both these APIs to present social channel details of the closest matched searchstring. The search could be for a place to eat, drink, party, shop or go outdoors in some city. I present the number of checkins on facebook, facebook likes, rankings in top categories and subcategories, and an Instagram photo feed. I use longitude and latitude coordinates from places API, along with other details, and use that as input in trippin’IN’s API. Note: a. Only popular cities work in the input. Although Google places’ library is vast, Trippin’IN’s database of places is limited. Pittsburgh is not in its database. b. It is assumed that the user will enter good valid data as input. Fault tolerance is handled to a fair extent. c. Examples of searches are: Restaurants: Penelope, California Pizza Kitchen in New York Party places:Pacha London d. There is a cap of 50 requests for Places API per 24 hours. 2. Implement a native Android application The name of my native Android application project in Eclipse is: PlaceInSightsAndroid 2.1My application uses TextView, EditText, Button, and ImageView. See main.xml for details of how they are incorporated into the RelativeLayout. Here is a screenshot of the layout before the picture has been fetched.
  • 2. 1.2. Requires input from the user Here is a screenshot of the user searching for the night club: Pacha London 1.3. Makes an HTTP request (using an appropriate HTTP method) to your web app My application does the HTTP request in PlaceInsightsServlet.java. The HTTP request is: "http://1.placeinsights12.appspot.com/Place_InSightsServlet?searchstring=penelope"+search where search is the user's search term. The search method makes this request of my web application, parses the returned XML to get the details to show the user 1.4. Receives and parses an XML or JSON formatted reply from the web app My good response is: <response> <title>Pacha London</title> <icon/> <open_now/> <imageurl> http://graph.facebook.com/180159821999925/picture?type=large </imageurl> <maincategory>Party</maincategory>
  • 3. <subcategory>Nightclub</subcategory> <totalcheckins>5408</totalcheckins> <totalwerehere>49673</totalwerehere> <totallikes>32394</totallikes> <rank>8</rank> <total>60</total> <gallery> <photo0> http://distilleryimage0.s3.amazonaws.com/3f650200473211e39a6122000ae8039f_6.j pg </photo0> <photo1> http://distilleryimage5.s3.amazonaws.com/a4b5ea0c473211e3883d12b02091f087_6.j pg </photo1> <photo2> http://distilleryimage1.s3.amazonaws.com/149a2fa4473311e3b29022000ab482f1_6.j pg </photo2> <photo3> http://origincache-frc.fbcdn.net/1390354_541811592579073_1379879032_a.jpg </photo3> <photo4> http://distilleryimage1.s3.amazonaws.com/028efb7444f811e3964f22000ae801df_6.j pg </photo4> <photo5> http://distilleryimage2.s3.amazonaws.com/d085d64a455e11e3a30c22000a1f9683_6.j pg </photo5> </gallery> </response> My bad response is: <response> <error>Your text search didn't return results.</error> </response>
  • 4. 1.5. Displays new information to the user Find below a screen shot of the output: 1.6. Is repeatable (I.e. the user can repeatedly reuse the application without restarting it.)
  • 5. 2. Implement a web application, deployed to Google App Engine The name of the Google App Engine project in Eclipse is: PlaceInSights 2.1. Uses the MVC design pattern In my web app project: Model: PlaceInSightsModel.java View: prompt.jsp Controller: PlaceInSightsServlet.java 2.2. Receives an HTTP request from the native Android application PlaceInSightsServlet.java receives the HTTP request with the argument "search". It passes this search string on to the model. 2.3. Executes business logic appropriate to your application PlaceInSightsModel.java does an HTTP request to: 2 APIs, Trippin’ Ins API: http://api.v1.trippinin.com/match/[place name]?coordinates=[lat,lng]&KEY=[your API key] and Google’s places API.It then parses the XML response from Google api, puts the coordinates and closest relevant search result in the input of TRIPPIN’IN’s API, and extracts the parts it needs to respond to the Android application. I parse JSON from Trippin’in.
  • 6. 2.4. Replies to the Android application with an XML or JSON formatted response. I format the response using in-built argument setting while outputting. I set the content type in the servlet PlacesInSightsModelto “text/xml”.