Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Using Geo Technologies to Locate Your Boss

Jenny Wong
November 20, 2015

Using Geo Technologies to Locate Your Boss

Trying to find a time to catch a meeting with Joe, Human Made's CTO, can be a task in itself. He is constantly on the move, which is a problem when you are not sure what timezone or location he is in. In this talk, we will look at how we can harness technologies such as GeoIP and Geolocation to keep track of him. I will be sharing how we created a WordPress plugin that integrated Foursquare, GeoIP, and the WordPress API into an internal site; the quirks and pitfalls of these technologies; and issues that have to be considered before trying to store time zones.

Jenny Wong

November 20, 2015
Tweet

More Decks by Jenny Wong

Other Decks in Technology

Transcript

  1. @miss_jwo Build a […] plugin to define working hours /

    timezones for users […] This will act as a centralised store for general working hours of the Human Made team, and will be displayed in a variety of ways. ” “
  2. @miss_jwo More Info: The Problem with Time & Timezones -

    Computerphile Strangest Time Zones of the World - WonderWhy
  3. @miss_jwo Consider How often the data is refreshed How accurate

    you need the data to be How much information it gives you
  4. @miss_jwo Consider How often the data is refreshed How accurate

    you need the data to be How reliable the service is How much information it gives you
  5. @miss_jwo Consider How often the data is refreshed How accurate

    you need the data to be How reliable the service is How much information it gives you Proxies
  6. @miss_jwo Consider How often the data is refreshed How accurate

    you need the data to be How reliable the service is How much information it gives you Proxies
  7. @miss_jwo Real-Time API User Push API Push to your application

    every time one of your users checks in https://developer.foursquare.com/overview/realtime
  8. @miss_jwo { "id": "4e6fe1404b90c00032eeac34", "createdAt": 1315955008, "type": "checkin", "timeZoneOffset": -240,

    "user": { “id”, “firstName”, “lastName”,”photo", “gender”, “homeCity”, "relationship" }, "venue": { "id": "4ab7e57cf964a5205f7b20e3", "name": "foursquare HQ", "contact": { "twitter": "foursquare" }, "location": { "address": "East Village”, "lat": 40.72809214560253, "lng": -73.99112284183502, "city": "New York", "state": "NY", "postalCode": "10003", "country": "USA" }, "categories": [ {…} ], "verified": true, "stats": {…}, "url": "http://foursquare.com" } } https://developer.foursquare.com/overview/realtime#format Swarm Checkin
  9. @miss_jwo Request the time zone for a location on the

    earth, as well as that location's time offset from UTC. https://developers.google.com/maps/documentation/timezone Google Time Zone Requests
  10. @miss_jwo { "dstOffset" : 3600, "rawOffset" : -28800, "status" :

    "OK", "timeZoneId" : "America/Los_Angeles", "timeZoneName" : "Pacific Daylight Time" } Google Time Zone Response