How to make a map with stream users?
Your content delivery network will have to give you either the IP of watchers or the location information you want. Google does this in insights, but they might not have this available in realtime.
One other way is using Twitch Extensions, like this one: http://twitchinsights.net/extension/9zqhb3hba48m0c382uno7k2t74isfi
It works by looking up the user’s location based on IP and sending that over the chat network to calculate the total.
Both of these solutions work on geoip technology which is not always accurate.
The way I do it is ask people to type the name of the city they’re in! Low tech hack. Then I run that through the google maps geocoder to find the location to drop the pin on the map.
This still needs some work to make it easier to set up, but the code is all public!
Thank YOU !