How to implement georeferencing in Drupal?
If you want to use an existing module - something like GMap is probably the easiest place to start.

That being said, the Google Map API is fairly easy to use, so nothing preventing you from writing a module that does exactly what you want.