function LatLng(lat, lng) { 
  this.id = 0;
  this.lat = lat;
  this.lng = lng;
}

LatLng.prototype.lng;
LatLng.prototype.lat;
LatLng.prototype.id;
LatLng.prototype.gmarker; // Google marker associated with this LatLng
LatLng.prototype.gpoint;  // Google point associated with this LatLng
LatLng.prototype.glatlng; // Google lat/lng associated with this LatLng

LatLng.prototype.get_lng = function() { return this.lng; }
LatLng.prototype.get_lat = function() { return this.lat; }
LatLng.prototype.get_id  = function() { return this.id; }
LatLng.prototype.set_lng = function(lng) { this.lng = lng; }
LatLng.prototype.set_lat = function(lng) { this.lat = lat; }
LatLng.prototype.set_id  = function(id) { this.id = id; }

LatLng.prototype.get_string = function() {
  return "(" + Math.numberFormat(this.lng, 4) + ", " + Math.numberFormat(this.lat, 4) + ")";
}

LatLng.prototype.equals = function(other_latlng) { return this.lat == other_latlng.lat && this.lng == other_latlng.lng; }
