Displaying Multiple Points On Google Map
What Im trying to achieve is display points on a map using postcode. I found a script that does this for one postcode, but I would like to display a few at once. So I was thinking
Solution 1:
Try this:
publicinterfaceMyInterface {
    publicvoidsetLat(double lat);
    publicvoidsetLng(double lng);
}
classAextendsFragmentActivityimplementsMyInterface{
    @Overwrite
    public void setLat(double lat) {
            //Do Something
    }
    @Overwrite
    public void setLng(double lng){
            //Do Something
    }
 }
 Class B
 {
      private MyInterface interface;
      publicB(MyInterface interface){
           this.interface = interface;
      }
      publicvoidretrievePost( String post){
           interface.setLat(lat); 
           interface.setLng(lng); 
      }
 }    
Post a Comment for "Displaying Multiple Points On Google Map"