SlideShare a Scribd company logo
GeoLocation Friends
    Visualizer
    Plotting your location social network data




Marcel Caraciolo
@marcelcaraciolo
Developer, Cientist, contributor to the Crab recsys project,
works with Python for 6 years, interested at mobile,
education, machine learning and dataaaaa!
Recife, Brazil - http://aimotion.blogspot.com
How your friends
 are connected ?
How your friends
 are connected ?



Where are they ?
Atépassar snapshot 300k users - March 2013
GeoMapper, Python Script for Visualizing Data on Social Networks with Geo-location data
Can I use it ???




    Please!
Of course!

https://github.com/marcelcaraciolo/Geo-Friendship-Visualization
Of course!
if	
  __name__	
  ==	
  '__main__':
	
  	
  	
  	
  parser	
  =	
  OptionParser(usage=SUPPRESS_USAGE)
	
  	
  	
  	
  print	
  'geocialMapper	
  v.%snBy	
  %sn'	
  %(__version__,__author__)
	
  	
  	
  	
  print	
  "Type	
  -­‐-­‐help	
  parameter	
  for	
  help.n"

	
  	
  	
  	
  parser.add_option('-­‐i','-­‐-­‐input-­‐file',dest='input_file',
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  help='Pickle	
  object	
  file	
  with	
  coordinates	
  and	
  quantity')
	
  	
  	
  	
  parser.add_option('-­‐s','-­‐-­‐size',dest='size',
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  help='image	
  dimmensions	
  height,width')
	
  	
  	
  	
  parser.add_option('-­‐o',	
  '-­‐-­‐output-­‐file',	
  dest='output_file',	
  default=	
  'map.jpg',
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  help='Output	
  file	
  for	
  saving	
  the	
  image')
	
  	
  	
  	
  parser.add_option('-­‐c',	
  '-­‐-­‐colormap',	
  dest='mode',	
  default='wb',
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  help='Mode	
  of	
  colormap	
  used:	
  wb,	
  all')
	
  	
  	
  	
  parser.add_option('-­‐p',	
  '-­‐-­‐connection',	
  dest='n_connections',	
  default=0,	
  type='int',
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  help=	
  'Threshold	
  for	
  the	
  number	
  of	
  interconnections	
  between	
  cities')

	
  	
  	
  	
  (options,args)	
  =	
  parser.parse_args()

	
  	
  	
  	
  if	
  not	
  options.input_file:
	
  	
  	
  	
  	
  	
  	
  	
  parser.error('You	
  must	
  specifiy	
  a	
  valid	
  pickle	
  object	
  to	
  load	
  data	
  (-­‐i	
  parameter)	
  !')

	
  	
  	
  	
  if	
  not	
  options.size:
	
  	
  	
  	
  	
  	
  	
  	
  parser.error('You	
  must	
  specifiy	
  the	
  dimmensions	
  of	
  the	
  image	
  (-­‐s	
  parameter)	
  !')

	
  	
  	
  	
  run_main(options)
Of course!

$	
  python	
  geo_mapper.py	
  -­‐i	
  	
  data.pk	
  	
  -­‐s	
  1600,1600	
  	
  -­‐o	
  	
  output_map.jpg


                                                  {	
  ((latO,longO),(latD,longD)):	
  qtd,	
  ...}

                                                  #(latO,longO)	
  are	
  the	
  latitude	
  and	
  longitude	
  of	
  
                                                  the	
  origin	
  location.	
  Both	
  are	
  float	
  values.
                                                  #(latD,longD)	
  ate	
  the	
  latitude	
  and	
  longitude	
  of	
  
                                                  the	
  destiny	
  location.	
  Both	
  are	
  float	
  values.
                                                  #qtd:	
  An	
  integer	
  that	
  represents	
  the	
  number	
  of	
  
                                                  connections	
  between	
  both	
  coordinates	
  (cities).
GeoMapper, Python Script for Visualizing Data on Social Networks with Geo-location data
Code available!

https://github.com/marcelcaraciolo/Geo-Friendship-Visualization
GeoLocation Friends
    Visualizer
    Plotting your location social network data




Marcel Caraciolo
@marcelcaraciolo
Developer, Cientist, contributor to the Crab recsys project,
works with Python for 6 years, interested at mobile,
education, machine learning and dataaaaa!
Recife, Brazil - http://aimotion.blogspot.com

More Related Content

PDF
Recommender Systems with Ruby (adding machine learning, statistics, etc)
PDF
Benchy: Lightweight framework for Performance Benchmarks
KEY
Crab - A Python Framework for Building Recommendation Systems
PDF
Intro to Python
PDF
Seattle.rb 6.4
PDF
Practical pig
PDF
Manifests of Future Past
PDF
Python: The Dynamic!
Recommender Systems with Ruby (adding machine learning, statistics, etc)
Benchy: Lightweight framework for Performance Benchmarks
Crab - A Python Framework for Building Recommendation Systems
Intro to Python
Seattle.rb 6.4
Practical pig
Manifests of Future Past
Python: The Dynamic!

What's hot (20)

PPTX
Pig workshop
PDF
An (Inaccurate) Introduction to Python
PDF
Conf orm - explain
PDF
Functional Programming & Event Sourcing - a pair made in heaven
PDF
Puppet Camp Portland 2015: Introduction to Hiera (Beginner)
PPT
Introduction to Graph Databases
PDF
Nest v. Flat with EmberData
PPT
Application Modeling with Graph Databases
PPT
Writing Friendly libraries for CodeIgniter
PPTX
ElasticSearch 5.x - New Tricks - 2017-02-08 - Elasticsearch Meetup
PDF
30 Days to Elixir and Crystal and Back to Ruby
PDF
Python于Web 2.0网站的应用 - QCon Beijing 2010
PPTX
2017 02-07 - elastic & spark. building a search geo locator
PDF
A Python Crash Course
PDF
Event Sourcing and Functional Programming
PDF
PyDX Presentation about Python, GeoData and Maps
PDF
A Journey through new Languages - Intercon 2016
PDF
A Journey through New Languages - Locaweb Tech Day
PDF
You are in a maze of deeply nested maps, all alike
PPTX
Hadoop
Pig workshop
An (Inaccurate) Introduction to Python
Conf orm - explain
Functional Programming & Event Sourcing - a pair made in heaven
Puppet Camp Portland 2015: Introduction to Hiera (Beginner)
Introduction to Graph Databases
Nest v. Flat with EmberData
Application Modeling with Graph Databases
Writing Friendly libraries for CodeIgniter
ElasticSearch 5.x - New Tricks - 2017-02-08 - Elasticsearch Meetup
30 Days to Elixir and Crystal and Back to Ruby
Python于Web 2.0网站的应用 - QCon Beijing 2010
2017 02-07 - elastic & spark. building a search geo locator
A Python Crash Course
Event Sourcing and Functional Programming
PyDX Presentation about Python, GeoData and Maps
A Journey through new Languages - Intercon 2016
A Journey through New Languages - Locaweb Tech Day
You are in a maze of deeply nested maps, all alike
Hadoop
Ad

Viewers also liked (20)

PDF
Big Data com Python
PDF
Construindo Soluções Científicas com Big Data & MapReduce
PDF
Computação Científica com Python, Numpy e Scipy
PDF
Como Python está mudando a forma de aprendizagem à distância no Brasil
PDF
Analyzing social media with Python and other tools (1/4)
PDF
Introduction to NumPy for Machine Learning Programmers
PDF
Python e Aprendizagem de Máquina (Inteligência Artificial)
PDF
Visualization of big time series data
PPT
I don't know,But I konw
PPT
Cat And Mouse Story
PPS
Niver Fe 18.02.07
PPS
Niver Bah - 22.06.07
PPT
Ict Presentation
PPT
Grasas Y Lipidos1
PPS
Culto Ferias - 05.07.07
PDF
Schubert
PDF
Lecture 10
PPTX
Lezing Managementboek 15 feb
PPT
Love you :)
PPT
Blackpool Council's Stuart Gilbert - Technology as the Enabler
Big Data com Python
Construindo Soluções Científicas com Big Data & MapReduce
Computação Científica com Python, Numpy e Scipy
Como Python está mudando a forma de aprendizagem à distância no Brasil
Analyzing social media with Python and other tools (1/4)
Introduction to NumPy for Machine Learning Programmers
Python e Aprendizagem de Máquina (Inteligência Artificial)
Visualization of big time series data
I don't know,But I konw
Cat And Mouse Story
Niver Fe 18.02.07
Niver Bah - 22.06.07
Ict Presentation
Grasas Y Lipidos1
Culto Ferias - 05.07.07
Schubert
Lecture 10
Lezing Managementboek 15 feb
Love you :)
Blackpool Council's Stuart Gilbert - Technology as the Enabler
Ad

Similar to GeoMapper, Python Script for Visualizing Data on Social Networks with Geo-location data (20)

PDF
Using python to analyze spatial data
PDF
Mining Geo-referenced Data: Location-based Services and the Sharing Economy
PDF
EuroPython 2019: GeoSpatial Analysis using Python and JupyterHub
PDF
Geospatial Data Analysis and Visualization in Python
ODP
Geospatial Data in R
PDF
Pycon 2012 Taiwan
PDF
那些年 Python 攻佔了 GIS / The Year Python Takes Over GIS
PDF
State of the Art Web Mapping with Open Source
PDF
Spatial_Data_Analysis_with_open_source_softwares[1]
PDF
20170504 - Warp 10 Tour, 42 USA
PDF
Playful Explorations of Public and Personal Data - OSCON Data 2011
PPTX
Road Monitoring - 2019 - IoT@Sapienza - v3
ODP
Pyconmini Hiroshima 2018
PDF
Reading and writing spatial data for the non-spatial programmer
PPTX
Processing planetary sized datasets
PDF
Spatial Analysis with R - the Good, the Bad, and the Pretty
PDF
The state of geo in ElasticSearch
PPTX
Geospatial Visualization for datascience
PPTX
Geo data analytics
Using python to analyze spatial data
Mining Geo-referenced Data: Location-based Services and the Sharing Economy
EuroPython 2019: GeoSpatial Analysis using Python and JupyterHub
Geospatial Data Analysis and Visualization in Python
Geospatial Data in R
Pycon 2012 Taiwan
那些年 Python 攻佔了 GIS / The Year Python Takes Over GIS
State of the Art Web Mapping with Open Source
Spatial_Data_Analysis_with_open_source_softwares[1]
20170504 - Warp 10 Tour, 42 USA
Playful Explorations of Public and Personal Data - OSCON Data 2011
Road Monitoring - 2019 - IoT@Sapienza - v3
Pyconmini Hiroshima 2018
Reading and writing spatial data for the non-spatial programmer
Processing planetary sized datasets
Spatial Analysis with R - the Good, the Bad, and the Pretty
The state of geo in ElasticSearch
Geospatial Visualization for datascience
Geo data analytics

More from Marcel Caraciolo (20)

PDF
Como interpretar seu próprio genoma com Python
PDF
Joblib: Lightweight pipelining for parallel jobs (v2)
PDF
Construindo softwares de bioinformática para análises clínicas : Desafios e...
PDF
Como Python ajudou a automatizar o nosso laboratório v.2
PDF
Como Python pode ajudar na automação do seu laboratório
PDF
Python on Science ? Yes, We can.
PDF
Oficina Python: Hackeando a Web com Python 3
PDF
Opensource - Como começar e dá dinheiro ?
PDF
Benchy, python framework for performance benchmarking of Python Scripts
PDF
Python e 10 motivos por que devo conhece-la ?
PDF
Construindo Sistemas de Recomendação com Python
PDF
Python, A pílula Azul da programação
PDF
Novas Tendências para a Educação a Distância: Como reinventar a educação ?
PDF
Aula WebCrawlers com Regex - PyCursos
PDF
Arquivos Zip com Python - Aula PyCursos
PDF
PyFoursquare: Python Library for Foursquare
PDF
Sistemas de Recomendação: Como funciona e Onde Se aplica?
PDF
Recomendação de Conteúdo para Redes Sociais Educativas
PDF
Content Recommendation Based on Data Mining in Adaptive Social Networks
PDF
Crab: A Python Framework for Building Recommender Systems
Como interpretar seu próprio genoma com Python
Joblib: Lightweight pipelining for parallel jobs (v2)
Construindo softwares de bioinformática para análises clínicas : Desafios e...
Como Python ajudou a automatizar o nosso laboratório v.2
Como Python pode ajudar na automação do seu laboratório
Python on Science ? Yes, We can.
Oficina Python: Hackeando a Web com Python 3
Opensource - Como começar e dá dinheiro ?
Benchy, python framework for performance benchmarking of Python Scripts
Python e 10 motivos por que devo conhece-la ?
Construindo Sistemas de Recomendação com Python
Python, A pílula Azul da programação
Novas Tendências para a Educação a Distância: Como reinventar a educação ?
Aula WebCrawlers com Regex - PyCursos
Arquivos Zip com Python - Aula PyCursos
PyFoursquare: Python Library for Foursquare
Sistemas de Recomendação: Como funciona e Onde Se aplica?
Recomendação de Conteúdo para Redes Sociais Educativas
Content Recommendation Based on Data Mining in Adaptive Social Networks
Crab: A Python Framework for Building Recommender Systems

Recently uploaded (20)

PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Encapsulation theory and applications.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Electronic commerce courselecture one. Pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Cloud computing and distributed systems.
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Chapter 3 Spatial Domain Image Processing.pdf
MYSQL Presentation for SQL database connectivity
Network Security Unit 5.pdf for BCA BBA.
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
The Rise and Fall of 3GPP – Time for a Sabbatical?
20250228 LYD VKU AI Blended-Learning.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
Encapsulation theory and applications.pdf
Big Data Technologies - Introduction.pptx
Review of recent advances in non-invasive hemoglobin estimation
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Electronic commerce courselecture one. Pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Understanding_Digital_Forensics_Presentation.pptx
Cloud computing and distributed systems.
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
CIFDAQ's Market Insight: SEC Turns Pro Crypto

GeoMapper, Python Script for Visualizing Data on Social Networks with Geo-location data

  • 1. GeoLocation Friends Visualizer Plotting your location social network data Marcel Caraciolo @marcelcaraciolo Developer, Cientist, contributor to the Crab recsys project, works with Python for 6 years, interested at mobile, education, machine learning and dataaaaa! Recife, Brazil - http://aimotion.blogspot.com
  • 2. How your friends are connected ?
  • 3. How your friends are connected ? Where are they ?
  • 4. Atépassar snapshot 300k users - March 2013
  • 6. Can I use it ??? Please!
  • 8. Of course! if  __name__  ==  '__main__':        parser  =  OptionParser(usage=SUPPRESS_USAGE)        print  'geocialMapper  v.%snBy  %sn'  %(__version__,__author__)        print  "Type  -­‐-­‐help  parameter  for  help.n"        parser.add_option('-­‐i','-­‐-­‐input-­‐file',dest='input_file',                                              help='Pickle  object  file  with  coordinates  and  quantity')        parser.add_option('-­‐s','-­‐-­‐size',dest='size',                                              help='image  dimmensions  height,width')        parser.add_option('-­‐o',  '-­‐-­‐output-­‐file',  dest='output_file',  default=  'map.jpg',                                              help='Output  file  for  saving  the  image')        parser.add_option('-­‐c',  '-­‐-­‐colormap',  dest='mode',  default='wb',                                              help='Mode  of  colormap  used:  wb,  all')        parser.add_option('-­‐p',  '-­‐-­‐connection',  dest='n_connections',  default=0,  type='int',                                              help=  'Threshold  for  the  number  of  interconnections  between  cities')        (options,args)  =  parser.parse_args()        if  not  options.input_file:                parser.error('You  must  specifiy  a  valid  pickle  object  to  load  data  (-­‐i  parameter)  !')        if  not  options.size:                parser.error('You  must  specifiy  the  dimmensions  of  the  image  (-­‐s  parameter)  !')        run_main(options)
  • 9. Of course! $  python  geo_mapper.py  -­‐i    data.pk    -­‐s  1600,1600    -­‐o    output_map.jpg {  ((latO,longO),(latD,longD)):  qtd,  ...} #(latO,longO)  are  the  latitude  and  longitude  of   the  origin  location.  Both  are  float  values. #(latD,longD)  ate  the  latitude  and  longitude  of   the  destiny  location.  Both  are  float  values. #qtd:  An  integer  that  represents  the  number  of   connections  between  both  coordinates  (cities).
  • 12. GeoLocation Friends Visualizer Plotting your location social network data Marcel Caraciolo @marcelcaraciolo Developer, Cientist, contributor to the Crab recsys project, works with Python for 6 years, interested at mobile, education, machine learning and dataaaaa! Recife, Brazil - http://aimotion.blogspot.com