From 8beb97dea2cd5cb24341c3889947eff916d756f0 Mon Sep 17 00:00:00 2001 From: wisnia Date: Tue, 14 Oct 2014 14:40:43 +0200 Subject: [PATCH] Wrong coordinates display The initial code displays all the tweets on the top of the map instead of the correct point. This changes fixes this issue. --- tweet-sentiment/WebApp/Models/HBaseReader.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweet-sentiment/WebApp/Models/HBaseReader.cs b/tweet-sentiment/WebApp/Models/HBaseReader.cs index ac5791d..2555b06 100644 --- a/tweet-sentiment/WebApp/Models/HBaseReader.cs +++ b/tweet-sentiment/WebApp/Models/HBaseReader.cs @@ -62,8 +62,8 @@ public async Task> QueryTweetsByKeywordAsync(string keyword) } list.Add(new Tweet { - Longtitude = Convert.ToDouble(lonlat[0]), - Latitude = Convert.ToDouble(lonlat[1]), + Longtitude = Convert.ToDouble(string.Format("{0},{1}", lonlat[0], lonlat[1])), + Latitude = Convert.ToDouble(string.Format("{0},{1}", lonlat[2], lonlat[3])), Sentiment = sentiment }); }