Skip to content

Lê um arquivo CSV e retorna outro arquivo acrescentando as coordendas geográficas (Latitude e Longitude)

Notifications You must be signed in to change notification settings

BrunoSantos14/coordenadas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Coordinates

drawing

About

This code read a CVS file and return another one adding columns with geographic coordinates (Latitude and Longitude). Also there's a dinamic map ploted by plotly. Obs.: The dataset was obtainded by a fake data generator website.

Project status: ✔️ Concluded

Index

🔹 Challenge

🔹 Features

🔹 Prerequisites

🔹 Plotly Map

🔹 Author

🔹 Contributions

Challenge

Obtain geographic coordinates of people or companies descripted on a dataset. This code return Latitude and Longitude for each line of data, providing the visualization of them on a map. Here I used Plotly to show how to create a map on Python, but maybe it's more interesting to create on another softwer, like Power BI, that allows more creativity and possibility to create personalized tooltips.

Features

  • Because dataset contain adresses from Brazil, we treated the zip code (CEP) column to leave it in a standardized format (xxxxx-xxx);
  • If the API can not find the geographic coordinates (because of a type error on a column for example), returns the string "Erro";
  • This project calculate the time of execution. By experimentation, a unique requisition takes between 0.6 and 1.1 seconds, also depending on computation capacity. On a large dataset, this code can take a long time;
  • It's possible to get the geographic coordinates of others countrys!

Prerequisites

Librarys required in this project:

Plotly Map

As example, take this screenshot of a map created under these codes:

Mapa

Author


Bruno Cavalcanti Santos

Contributions

Any doubts or ideas to develop this project you can contact me on email: bruno.canti.santos@gmail.com

About

Lê um arquivo CSV e retorna outro arquivo acrescentando as coordendas geográficas (Latitude e Longitude)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published