meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
jolla2014:group7:start [2014/03/05 19:41] – [Codes] 3_fishermen | jolla2014:group7:start [2014/03/06 11:48] (current) – 3_fishermen | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Welcome to Wiki Page of Group 7. In this page, you will find everything you need to know about our **" | + | \\ |
+ | //Welcome to Wiki Page of Group 7. In this page, you will find everything you need to know about our **" | ||
\\ | \\ | ||
\\ | \\ | ||
Line 20: | Line 21: | ||
\\ | \\ | ||
\\ | \\ | ||
- | To help the user determine the quality of the apartment, we calculate a rating (from 1 to 5 stars)based on the distance criteria. The nearest the distance from the 7 places, the higher the rating will be. If distance is within 300 meters, score will be 5 star. Within 500 meters, score will be 4 stars. Within 700 meters, score will be 3 stars. Within 1 km, score will be 2 stars. And lastly, within | + | To help the user determine the quality of the apartment, we calculate a rating (from 1 to 5 stars)based on the distance criteria. The nearest the distance from the 7 places, the higher the rating will be. If distance is within 300 meters, score will be 5 star. Within 500 meters, score will be 4 stars. Within 700 meters, score will be 3 stars. Within 1 km, score will be 2 stars. And lastly, within |
\\ | \\ | ||
\\ | \\ | ||
Line 53: | Line 54: | ||
\\ | \\ | ||
\\ | \\ | ||
- | ====== Some Interesting | + | ====== Some Codes ====== |
**Retrieval of Coordinate of an address** | **Retrieval of Coordinate of an address** | ||
Line 109: | Line 110: | ||
setLatLong(latit+" | setLatLong(latit+" | ||
+ | |||
+ | </ | ||
+ | \\ | ||
+ | **Find parameters (bus stops, | ||
+ | < | ||
+ | //within 500m | ||
+ | //1. Getting ATM list | ||
+ | QString atmString = " | ||
+ | atmString = " | ||
+ | //Getting the XML | ||
+ | //manager = new QNetworkAccessManager(this); | ||
+ | reply = manager-> | ||
+ | connect(reply, | ||
+ | loop.exec(); | ||
+ | |||
+ | doc-> | ||
+ | //Get the root element | ||
+ | docElem = doc-> | ||
+ | nodeList = docElem.elementsByTagName(" | ||
+ | if (nodeList.count()> | ||
+ | // | ||
+ | theATM.score = " | ||
+ | theATM.distance=" | ||
+ | |||
+ | // setAddressToRate(" | ||
+ | for(int ii=0; | ||
+ | // get the current one as QDomElement | ||
+ | QDomElement el = nodeList.at(ii).toElement(); | ||
+ | |||
+ | atmResult = atmResult+" | ||
+ | } | ||
+ | atmResult=atmResult+" | ||
+ | atmResulti=4; | ||
+ | |||
+ | </ | ||
+ | \\ | ||
+ | **Rate the place** | ||
+ | < | ||
+ | totalz = totalz+atmResulti + municipalityResulti+restaurantResulti + busStopResulti + universityResulti+ smarketResulti + hospitalResulti; | ||
+ | totalz=qRound(totalz/ | ||
</ | </ | ||
Line 126: | Line 167: | ||
====== Report ====== | ====== Report ====== | ||
Read this to get a detailed explanation: | Read this to get a detailed explanation: | ||
- | {{: | + | {{: |
\\ | \\ | ||
\\ | \\ | ||
====== Poster ====== | ====== Poster ====== | ||
{{: | {{: | ||
+ | \\ | ||
+ | \\ | ||
+ | ====== Application ====== | ||
+ | You can download our application here:\\ | ||
+ | [[https:// | ||
\\ | \\ | ||
\\ | \\ | ||
====== Source Code ====== | ====== Source Code ====== | ||
You can download our source code here:\\ | You can download our source code here:\\ | ||
- | [[https:// | ||
[[https:// | [[https:// | ||
- | |||
- | |||