Social Geolocation using Yahoo Blueprint
Click here to load reader
-
Upload
natali-ardianto -
Category
Technology
-
view
1.195 -
download
0
Transcript of Social Geolocation using Yahoo Blueprint
![Page 1: Social Geolocation using Yahoo Blueprint](https://reader038.fdocuments.in/reader038/viewer/2022102323/547912d4b4af9f3d2f8b4656/html5/thumbnails/1.jpg)
OPEN HACK DAYJakarta, 22 November 2009
Hacking
![Page 2: Social Geolocation using Yahoo Blueprint](https://reader038.fdocuments.in/reader038/viewer/2022102323/547912d4b4af9f3d2f8b4656/html5/thumbnails/2.jpg)
Introducing BOLA.MOBILEA mobile apps, create
using Yahoo Blueprint technology
Targeting a very specific and niche market, the Indonesian Soccer League
![Page 3: Social Geolocation using Yahoo Blueprint](https://reader038.fdocuments.in/reader038/viewer/2022102323/547912d4b4af9f3d2f8b4656/html5/thumbnails/3.jpg)
Mini Social Networking
We have this cute mini social networking, grouped by League Clubs
![Page 4: Social Geolocation using Yahoo Blueprint](https://reader038.fdocuments.in/reader038/viewer/2022102323/547912d4b4af9f3d2f8b4656/html5/thumbnails/4.jpg)
The problem!But who the hell wanted
they buddies to be alphabetically ordered
Ordered by A to Z?Really uncool!
![Page 5: Social Geolocation using Yahoo Blueprint](https://reader038.fdocuments.in/reader038/viewer/2022102323/547912d4b4af9f3d2f8b4656/html5/thumbnails/5.jpg)
Thank Goodness I Use YAHOO BLUEPRINT!
![Page 6: Social Geolocation using Yahoo Blueprint](https://reader038.fdocuments.in/reader038/viewer/2022102323/547912d4b4af9f3d2f8b4656/html5/thumbnails/6.jpg)
BLUEPRINT HEADERS MAGIC
Blueprint sent Geolocation data on each HTTP request
![Page 7: Social Geolocation using Yahoo Blueprint](https://reader038.fdocuments.in/reader038/viewer/2022102323/547912d4b4af9f3d2f8b4656/html5/thumbnails/7.jpg)
BP Headers[HTTP_GEO_COUNTRY] => ID [HTTP_GEO_POSITION] => -6.18287, 106.829109[HTTP_X_CARRIER] => UNKNOWN; country=ID [HTTP_X_GEO_LOCATION] => name=; street=;
city=Jakarta; state=; country=ID; zip=
Geolocation data for Indonesia is suckybut Yahoo will make it better through
FireEagle and Koprol.
Trust me.
![Page 8: Social Geolocation using Yahoo Blueprint](https://reader038.fdocuments.in/reader038/viewer/2022102323/547912d4b4af9f3d2f8b4656/html5/thumbnails/8.jpg)
getDistance Between Two Coordinates – MySQL Function
CREATE FUNCTION `getDistance`(lat1 DECIMAL(23,20), lon1 DECIMAL(23,20), lat2 DECIMAL(23,20), lon2 DECIMAL(23,20)
) RETURNS decimal(15,5)BEGIN
SET @R = 6371;SET @dLat = RADIANS(lat2 - lat1);SET @dLon = RADIANS(lon2 - lon1);SET @a = POW( SIN(@dLat/2), 2 ) + ( COS( RADIANS(lat1) ) * COS( RADIANS(lat2) ) * POW( SIN(@dLon/2), 2 ));SET @c = 2 * ATAN2( SQRT(@a), SQRT(1 - @a) );SET @d = @R * @c;RETURN @d;
END
![Page 9: Social Geolocation using Yahoo Blueprint](https://reader038.fdocuments.in/reader038/viewer/2022102323/547912d4b4af9f3d2f8b4656/html5/thumbnails/9.jpg)
Everytime the user logged inWe update the user’s location and coordinates[HTTP_GEO_POSITION] => -6.18287, 106.829109[HTTP_X_GEO_LOCATION] => name=; street=;
city=Jakarta; state=; country=ID; zip=
![Page 10: Social Geolocation using Yahoo Blueprint](https://reader038.fdocuments.in/reader038/viewer/2022102323/547912d4b4af9f3d2f8b4656/html5/thumbnails/10.jpg)
Results!Look for my buddies really
close to me, and then look for the ones who logged in recently
Ordered by Distance from where I am.REALLY COOL!
![Page 12: Social Geolocation using Yahoo Blueprint](https://reader038.fdocuments.in/reader038/viewer/2022102323/547912d4b4af9f3d2f8b4656/html5/thumbnails/12.jpg)
Ideas for YahooComplete the geolocation streets for IndonesiaActivate FireEagle. Geolocation is the next Web 4.0