“¿A quién votar?” Get to know the candidates for the 2014 Uruguayan Elections

“¿A quién votar?” Get to know the candidates for the 2014 Uruguayan Elections

“¿A quién votar?” (“Who to vote for?”) is a web app that I’ve been developing with @teoiglesias for sharing news and information about the candidates for the next elections in Uruguay. The UI is very simple. Basically, it’s divided in two sections: “Candidates” and “News”. In the first one you can find information related to the candidates such as the webpage and social media links, while in the second one users can share news regarding a specific candidate from any source such as newspapers, magazines, social…

Read More Read More

Getting the map coordinates of an address in Ruby on Rails

Getting the map coordinates of an address in Ruby on Rails

If you’re developing a map-based application, something very interesting (and useful) is to get the map coordinates (latitude, longitude) from a given address. To do this you can use the Geocoder gem. With this gem, apart from getting the map coordinates from an address, you can also calculate the distance between two points, get the address from a given coordinate, get venues close to an address and more. I encourage you to read the complete documentation following the next link:…

Read More Read More

Shapefiles in Ruby on Rails

Shapefiles in Ruby on Rails

Continuing with the last post, we’ll now see how to open a shapefile using Ruby on Rails. I found basically two ways to accomplish this. The first one is by using the RGeo gem while the second one is by converting the shapefile into a GeoJSON file. Alternative 1: RGeo gem RGeo is a Ruby Library that provides a implementation of the OGC Simple Features Specification, used for representing geometric objects. To open shapefiles you need an extra module called RGeo::Shapefile. So to start with, install the gems…

Read More Read More

Opening a shapefile using QGIS

Opening a shapefile using QGIS

Recently I’ve been looking through some open data related to my country. The thing was that some of it (mostly geographic information) was in an unknown format to me: Shapefile. A shapefile is a data format used to store geographic information. It usually consist of at least three different types of files: a .shp (containing the geometry information), a .shx (a compiled .shp that allows programs to interpret the information more quickly) and a .dbf (a database file which stores attributes for each shape). After a quick research I found an…

Read More Read More

Hello World!

Hello World!

Hi there! My name is Andrés and starting today, I’ll use this space to write about technology, programming, personal projects and anything that comes to my mind. Hope to see you in the next post!