Package com.googlecode.gmaps4jsf.component.common

Examples of com.googlecode.gmaps4jsf.component.common.Position


    String postalCode;
    String address;
    String location;
   
    public void processValueChangeForMarker(ValueChangeEvent valueChangeEvent) {
      Position value = (Position) valueChangeEvent.getNewValue();
       
        if (value != null) {
            try {
                PlaceMark placeMark = GenericServicesFactory.getLocationService().getAddressFromLocation (value.getLatitude(), value.getLongitude());
               
                address    = placeMark.getAddress();
                postalCode = placeMark.getPostalCodeNumber();
                location   = value.getLatitude() + ", " + value.getLongitude();
               
                System.out.println("LatLng: " + value.getLatitude() + ", " + value.getLongitude());
                System.out.println("address: " + address);
                System.out.println("postalCode: " + postalCode);
            } catch (Exception e) {
                e.printStackTrace();
            }
View Full Code Here

TOP

Related Classes of com.googlecode.gmaps4jsf.component.common.Position

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.