Tuesday, July 12, 2011

Syntax Highlighting on Blogger

The easiest way to paste code into blogger with nice syntax highlighting:

  1. Go to http://gist.github.com
  2. Past the code you want to post
  3. Copy the embed tag
  4. Go back to blogger, and select "Edit Html"
  5. Paste the embed tag into your post

In this post you can see some example of code highlighting: http://ddelizia.blogspot.com/2011/07/geocoding-address-with-google-maps-api.html

Geocoding an address with Google Maps API in Java

Geocoding is the process of finding associated geographic coordinates (often expressed as latitude and longitude) from other geographic data, such as street addresses, or zip codes (postal codes). With geographic coordinates the features can be mapped and entered into Geographic Information Systems, or the coordinates can be embedded into media such as digital photographs via geotagging.
I made a simple method that giving an address it returns a list of with the corresponding formatted address, latitue, longitide, separated by ";".