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

Film show post-production powerpoint for site
Film show post-production powerpoint for siteFilm show post-production powerpoint for site
Film show post-production powerpoint for siteAshtonCains
 
Enjoy Night⚡Call Girls Palam Vihar Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Palam Vihar Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Palam Vihar Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Palam Vihar Gurgaon >༒8448380779 Escort ServiceDelhi Call girls
 
BDSM⚡Call Girls in Sector 76 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 76 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 76 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 76 Noida Escorts >༒8448380779 Escort ServiceDelhi Call girls
 
Website research Powerpoint for Bauer magazine
Website research Powerpoint for Bauer magazineWebsite research Powerpoint for Bauer magazine
Website research Powerpoint for Bauer magazinesamuelcoulson30
 
Call Girls In South Ex. Delhi O9654467111 Women Seeking Men
Call Girls In South Ex. Delhi O9654467111 Women Seeking MenCall Girls In South Ex. Delhi O9654467111 Women Seeking Men
Call Girls In South Ex. Delhi O9654467111 Women Seeking MenSapana Sha
 
Improve Your Brand in Waco with a Professional Social Media Marketing Company
Improve Your Brand in Waco with a Professional Social Media Marketing CompanyImprove Your Brand in Waco with a Professional Social Media Marketing Company
Improve Your Brand in Waco with a Professional Social Media Marketing CompanyWSI INTERNET PARTNER
 
Lucknow 💋 Dating Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Serv...
Lucknow 💋 Dating Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Serv...Lucknow 💋 Dating Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Serv...
Lucknow 💋 Dating Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Serv...anilsa9823
 
Call Girls In Noida Mall Of Noida O9654467111 Escorts Serviec
Call Girls In Noida Mall Of Noida O9654467111 Escorts ServiecCall Girls In Noida Mall Of Noida O9654467111 Escorts Serviec
Call Girls In Noida Mall Of Noida O9654467111 Escorts ServiecSapana Sha
 
Vellore Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
Vellore Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort ServiceVellore Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
Vellore Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort ServiceDamini Dixit
 
Film the city investagation powerpoint :)
Film the city investagation powerpoint :)Film the city investagation powerpoint :)
Film the city investagation powerpoint :)AshtonCains
 
Your LinkedIn Makeover: Sociocosmos Presence Package
Your LinkedIn Makeover: Sociocosmos Presence PackageYour LinkedIn Makeover: Sociocosmos Presence Package
Your LinkedIn Makeover: Sociocosmos Presence PackageSocioCosmos
 
Ready to get noticed? Partner with Sociocosmos
Ready to get noticed? Partner with SociocosmosReady to get noticed? Partner with Sociocosmos
Ready to get noticed? Partner with SociocosmosSocioCosmos
 
Night 7k Call Girls Pari Chowk Escorts Call Me: 8448380779
Night 7k Call Girls Pari Chowk Escorts Call Me: 8448380779Night 7k Call Girls Pari Chowk Escorts Call Me: 8448380779
Night 7k Call Girls Pari Chowk Escorts Call Me: 8448380779Delhi Call girls
 
Night 7k Call Girls Noida Sector 121 Call Me: 8448380779
Night 7k Call Girls Noida Sector 121 Call Me: 8448380779Night 7k Call Girls Noida Sector 121 Call Me: 8448380779
Night 7k Call Girls Noida Sector 121 Call Me: 8448380779Delhi Call girls
 
9990611130 Find & Book Russian Call Girls In Crossings Republik
9990611130 Find & Book Russian Call Girls In Crossings Republik9990611130 Find & Book Russian Call Girls In Crossings Republik
9990611130 Find & Book Russian Call Girls In Crossings RepublikGenuineGirls
 
SELECTING A SOCIAL MEDIA MARKETING COMPANY
SELECTING A SOCIAL MEDIA MARKETING COMPANYSELECTING A SOCIAL MEDIA MARKETING COMPANY
SELECTING A SOCIAL MEDIA MARKETING COMPANYdizinfo
 

Dernier (20)

Film show post-production powerpoint for site
Film show post-production powerpoint for siteFilm show post-production powerpoint for site
Film show post-production powerpoint for site
 
Enjoy Night⚡Call Girls Palam Vihar Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Palam Vihar Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Palam Vihar Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Palam Vihar Gurgaon >༒8448380779 Escort Service
 
BDSM⚡Call Girls in Sector 76 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 76 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 76 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 76 Noida Escorts >༒8448380779 Escort Service
 
Website research Powerpoint for Bauer magazine
Website research Powerpoint for Bauer magazineWebsite research Powerpoint for Bauer magazine
Website research Powerpoint for Bauer magazine
 
Call Girls In South Ex. Delhi O9654467111 Women Seeking Men
Call Girls In South Ex. Delhi O9654467111 Women Seeking MenCall Girls In South Ex. Delhi O9654467111 Women Seeking Men
Call Girls In South Ex. Delhi O9654467111 Women Seeking Men
 
Russian Call Girls Rohini Sector 35 💓 Delhi 9999965857 @Sabina Modi VVIP MODE...
Russian Call Girls Rohini Sector 35 💓 Delhi 9999965857 @Sabina Modi VVIP MODE...Russian Call Girls Rohini Sector 35 💓 Delhi 9999965857 @Sabina Modi VVIP MODE...
Russian Call Girls Rohini Sector 35 💓 Delhi 9999965857 @Sabina Modi VVIP MODE...
 
Improve Your Brand in Waco with a Professional Social Media Marketing Company
Improve Your Brand in Waco with a Professional Social Media Marketing CompanyImprove Your Brand in Waco with a Professional Social Media Marketing Company
Improve Your Brand in Waco with a Professional Social Media Marketing Company
 
Lucknow 💋 Dating Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Serv...
Lucknow 💋 Dating Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Serv...Lucknow 💋 Dating Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Serv...
Lucknow 💋 Dating Call Girls Lucknow | Whatsapp No 8923113531 VIP Escorts Serv...
 
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Masudpur
Delhi  99530 vip 56974  Genuine Escort Service Call Girls in MasudpurDelhi  99530 vip 56974  Genuine Escort Service Call Girls in Masudpur
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Masudpur
 
Call Girls In Noida Mall Of Noida O9654467111 Escorts Serviec
Call Girls In Noida Mall Of Noida O9654467111 Escorts ServiecCall Girls In Noida Mall Of Noida O9654467111 Escorts Serviec
Call Girls In Noida Mall Of Noida O9654467111 Escorts Serviec
 
Vellore Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
Vellore Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort ServiceVellore Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
Vellore Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
 
Film the city investagation powerpoint :)
Film the city investagation powerpoint :)Film the city investagation powerpoint :)
Film the city investagation powerpoint :)
 
Your LinkedIn Makeover: Sociocosmos Presence Package
Your LinkedIn Makeover: Sociocosmos Presence PackageYour LinkedIn Makeover: Sociocosmos Presence Package
Your LinkedIn Makeover: Sociocosmos Presence Package
 
🔝9953056974 🔝Call Girls In Mehrauli Escort Service Delhi NCR
🔝9953056974 🔝Call Girls In Mehrauli  Escort Service Delhi NCR🔝9953056974 🔝Call Girls In Mehrauli  Escort Service Delhi NCR
🔝9953056974 🔝Call Girls In Mehrauli Escort Service Delhi NCR
 
Ready to get noticed? Partner with Sociocosmos
Ready to get noticed? Partner with SociocosmosReady to get noticed? Partner with Sociocosmos
Ready to get noticed? Partner with Sociocosmos
 
Night 7k Call Girls Pari Chowk Escorts Call Me: 8448380779
Night 7k Call Girls Pari Chowk Escorts Call Me: 8448380779Night 7k Call Girls Pari Chowk Escorts Call Me: 8448380779
Night 7k Call Girls Pari Chowk Escorts Call Me: 8448380779
 
Night 7k Call Girls Noida Sector 121 Call Me: 8448380779
Night 7k Call Girls Noida Sector 121 Call Me: 8448380779Night 7k Call Girls Noida Sector 121 Call Me: 8448380779
Night 7k Call Girls Noida Sector 121 Call Me: 8448380779
 
Russian Call Girls Rohini Sector 37 💓 Delhi 9999965857 @Sabina Modi VVIP MODE...
Russian Call Girls Rohini Sector 37 💓 Delhi 9999965857 @Sabina Modi VVIP MODE...Russian Call Girls Rohini Sector 37 💓 Delhi 9999965857 @Sabina Modi VVIP MODE...
Russian Call Girls Rohini Sector 37 💓 Delhi 9999965857 @Sabina Modi VVIP MODE...
 
9990611130 Find & Book Russian Call Girls In Crossings Republik
9990611130 Find & Book Russian Call Girls In Crossings Republik9990611130 Find & Book Russian Call Girls In Crossings Republik
9990611130 Find & Book Russian Call Girls In Crossings Republik
 
SELECTING A SOCIAL MEDIA MARKETING COMPANY
SELECTING A SOCIAL MEDIA MARKETING COMPANYSELECTING A SOCIAL MEDIA MARKETING COMPANY
SELECTING A SOCIAL MEDIA MARKETING COMPANY
 

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”.