function RoadPoint(D,B,A,C){this.latlng=D;this.request=B;this.response=A;this.roadident=C;this.marker=null;this.hide=function(){this.marker.hide()};this.show=function(){this.marker.show();this.marker.openInfoWindow(this.getHtml());map.panTo(this.latlng)};this.remove=function(){map.removeOverlay(this.marker)
};this.getHtml=function(){var E="";E+="<b>"+this.response.foundAs+" "+this.request.street_number+"</b><br />";E+=this.response.zip+" "+this.response.municipality+"<br /> ";E+=this.request.division+"<br><br>";if(clear_state==0){E+="<a href=\"javascript:setRoutePointFrom('"+this.latlng.lat()+"','"+this.latlng.lng()+"')\">";
E+='<img src="images/start_hex.png" style="border:0px; margin-right:3px;" title="Διαδρομή από" alt="Διαδρομή από" />';E+="</a>";E+="<a href=\"javascript:setRoutePointTo('"+this.latlng.lat()+"','"+this.latlng.lng()+"')\">";E+='<img src="images/stop_hex.png" style="border:0px; margin-right:3px;" title="Διαδρομή έως" alt="Διαδρομή έως" />'
}if(clear_state==2){E+='<img src="images/melissa1.png">&nbsp;<a href="http://www.ploigos.gr">www.ploigos.gr</a>&nbsp;<img src="images/melissa2.png">'}return E};this.getText=function(){var F="";var E=trim(this.request.street_number);F+=this.response.foundAs;if(E.length>0){F+=" "+E}F+=", ";F+=this.response.municipality;
return F};this.getType=function(){return ELTYPE_ROAD};this.getIdent=function(){return this.roadident};this.equals=function(E){if(E.getType()==this.getType()){if(this.roadident==E.roadident){return true}}return false};this.init=function(E){if((E)&&(E<80)){this.marker=new GMarker(this.latlng,iconprint[E-1])
}else{this.marker=new GMarker(this.latlng,iconSelectedPoint)}this.marker.bindInfoWindowHtml(this.getHtml());map.addOverlay(this.marker);map.panTo(this.latlng)};this.getAttributes=function(){return["vertex"]};this.toJSONString=function(){var E={"type":"roadpoint","latlng":{"lat":this.latlng.lat(),"lng":this.latlng.lng()},"request":this.request,"response":this.response};
return toJSONString(E)}}RoadPoint.prototype.fromJSONString=function(D,C){var B=new GLatLng(D.latlng.lat,D.latlng.lng);var A=new RoadPoint(B,D.request,D.response,-1);A.init(C);return A};