Package org.fluxtream.core.connectors.location

Examples of org.fluxtream.core.connectors.location.LocationFacet


            facet.place_lat = place_lat;
            facet.place_lon = place_lon;
            if (jsonObject.has("place_name"))
                facet.place_name = jsonObject.getString("place_name");

            LocationFacet locationFacet = new LocationFacet(updateInfo.apiKey.getId());

            if (jsonObject.has("place_acc")&&StringUtils.isNotEmpty("place_acc")) {
                String placeAccuracy = jsonObject.getString("place_acc");
                try {
                    int place_acc = Integer.valueOf(placeAccuracy);
View Full Code Here


                                facet.longitude = locArray.getDouble(0);
                                facet.latitude = locArray.getDouble(1);

                                if(facet.longitude!=null && facet.latitude!=null) {
                                    // Create a location for updating visited cities list
                                    LocationFacet locationFacet = new LocationFacet(updateInfo.apiKey.getId());
                                    locationFacet.guestId = updateInfo.getGuestId();
                                    locationFacet.source = LocationFacet.Source.MYMEE;
                                    locationFacet.api = updateInfo.apiKey.getConnector().value();
                                    locationFacet.start = locationFacet.end = locationFacet.timestampMs = facet.start;
                                    locationFacet.latitude = facet.latitude.floatValue();
View Full Code Here

                    if (jsonObject.has("path")) {
                        final JSONArray path = jsonObject.getJSONArray("path");
                        List<LocationFacet> locationFacets = new ArrayList<LocationFacet>();
                        for (int i=0; i<path.size(); i++) {
                            JSONObject pathElement = path.getJSONObject(i);
                            LocationFacet locationFacet = new LocationFacet(updateInfo.apiKey.getId());
                            locationFacet.latitude = (float) pathElement.getDouble("latitude");
                            locationFacet.longitude = (float) pathElement.getDouble("longitude");
                            if (!startTimeSet) {
                                // we need to know the user's location in order to figure out
                                // his timezone
View Full Code Here

TOP

Related Classes of org.fluxtream.core.connectors.location.LocationFacet

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.