Examples of GeoPoint


Examples of com.bbn.openmap.geo.GeoPoint

    public boolean mouseOver(MapMouseEvent mme) {

        if (regionIndex != null) {
            LatLonPoint llp = mme.getLatLon();
            GeoPoint geop = new GeoPoint.Impl(llp.getLatitude(), llp.getLongitude());
            for (Iterator hits = Intersection.intersect(geop, regionIndex); hits.hasNext();) {
                OMPolyRegion ompr = (OMPolyRegion) hits.next();
                ompr.poly.select();
                ompr.poly.generate(getProjection());
            }
View Full Code Here

Examples of com.bluetangstudio.searchcloud.client.model.GeoPoint

    public RequestBuilderTestBase() {
    }

    public void setTrackingVariables(AbstractRequest get) {
        get.setApiKey("apiKey");
        get.setCurrentLocation(new GeoPoint(10.0, 20.0));
        get.setMachineId("machineId");
    }
View Full Code Here

Examples of com.google.api.adwords.v201008.cm.GeoPoint

  private AdExtension[] adExtensionProvider() {
    // Create location extension.
    LocationExtension locationExtension = new LocationExtension();
    locationExtension.setAddress(new Address("76 9th Ave", null, "New York", "NY", "NY", "10011",
        "US"));
    locationExtension.setGeoPoint(new GeoPoint(new Integer(40742412), new Integer(-74004378)));
    String encoded = "qrvM3QDB3iJsdO58XYyix7YGjYhU+jHs3GR0J6uqpGp55fMTsorT5ZLH69crnCWnM3"
        + "FVAFDO9Un4HNbc5/ORF0Y8hZL/sPevCyxMrjZ2gmwbQwi2fvDB2J7RhyWSV4uWA3LT"
        + "0sdG2b22nH34uDh88XZyTyZMk0Fgc6wmmIwKSlUdYlyCzJ00Qd2JGboNgcWnVeHC8c"
        + "bGd4BzGR839qM7tGXlW5TvuGUs/lz3WjScPbHY8L0TfYcv2JV3c88di7qZJem7XV9I"
        + "Qqm3SFfWOwyC6K3y1v9p+V3twZoBCf02QVZFiohpTzau9Bj6hbXNoB7LKMHK1skduI"
View Full Code Here

Examples of com.google.api.services.youtube.model.GeoPoint

        while (iteratorVideoResults.hasNext()) {

            Video singleVideo = iteratorVideoResults.next();

            Thumbnail thumbnail = singleVideo.getSnippet().getThumbnails().getDefault();
            GeoPoint location = singleVideo.getRecordingDetails().getLocation();

            System.out.println(" Video Id" + singleVideo.getId());
            System.out.println(" Title: " + singleVideo.getSnippet().getTitle());
            System.out.println(" Location: " + location.getLatitude() + ", " + location.getLongitude());
            System.out.println(" Thumbnail: " + thumbnail.getUrl());
            System.out.println("\n-------------------------------------------------------------\n");
        }
    }
View Full Code Here

Examples of com.google.appengine.api.search.GeoPoint

        field = Field.newBuilder().setName("htmlfield").setHTML("<html>html field</html>").build();
        docBuilder.addField(field);
        User currentUser = new User("prometheus-qa@appenginetest.com", "appenginetest.com");
        field = Field.newBuilder().setName("atomfield").setAtom(currentUser.getAuthDomain()).build();
        docBuilder.addField(field);
        GeoPoint geoPoint = new GeoPoint((double) -10, 10.000001);
        field = Field.newBuilder().setName("geofield").setGeoPoint(geoPoint).build();
        docBuilder.addField(field);
        index.put(docBuilder);
        sync();
View Full Code Here

Examples of org.elasticsearch.common.geo.GeoPoint

  public static String encode(double lat, double lon) {
    return org.elasticsearch.common.geo.GeoHashUtils.encode(lat, lon);
  }
 
  public static double[] decode(String geohash) {
    GeoPoint x = org.elasticsearch.common.geo.GeoHashUtils.decode(geohash);
    double retVal[] = { x.getLat(), x.getLon() };
    return retVal;
  }
View Full Code Here

Examples of org.elasticsearch.common.geo.GeoPoint

                type1.dateCreate = date;

                // this is to go around the known bug in elasticsearch 1.1:
                // https://github.com/elasticsearch/elasticsearch/issues/5680#issuecomment-39794200
                // Issue is fixed on ES 1.1.1
                GeoPoint location = new GeoPoint(30.6943566,-88.0430541);
                type1.location = location;

                // indexing
                IndexResponse index = type1.index();
View Full Code Here

Examples of org.elasticsearch.common.geo.GeoPoint

    public void asynchronousIndex() {
        running(esFakeApplication(), new Runnable() {
            @Override
            public void run() {
                Index1Type1 index1Type1 = new Index1Type1("1", "name1", "category", new Date());
                GeoPoint location = new GeoPoint(30.6943566,-88.0430541);
                index1Type1.location = location;

                Index1Type1 index1Type1Bis = new Index1Type1("2", "name2", "category", new Date());
                index1Type1Bis.location = location;
View Full Code Here

Examples of org.elasticsearch.common.geo.GeoPoint

    @Test
    public void asynchronousIndexBulk() {
        running(esFakeApplication(), new Runnable() {
            @Override
            public void run() {
                GeoPoint location = new GeoPoint(30.6943566,-88.0430541);
                Index1Type1 index1Type1 = new Index1Type1("1", "name1", "category", new Date(),location);
                Index1Type1 index1Type1Bis = new Index1Type1("2", "name2", "category", new Date(),location);
                Index1Type1 index1Type1Ter = new Index1Type1("3", "name3", "category", new Date(),location);

                F.Promise<BulkResponse> promise = IndexService.indexBulkAsync(
View Full Code Here

Examples of org.elasticsearch.common.geo.GeoPoint

    @Test
    public void asynchronousDelete() {
        running(esFakeApplication(), new Runnable() {
            @Override
            public void run() {
                GeoPoint location = new GeoPoint(30.6943566,-88.0430541);
                Index1Type1 index1Type1 = new Index1Type1("1", "name1", "category", new Date(), location);
                Index1Type1 index1Type1Bis = new Index1Type1("2", "name2", "category", new Date(), location);
                Index1Type1 index1Type1Ter = new Index1Type1("3", "name3", "category", new Date(), location);
                IndexService.indexBulk(index1Type1.getIndexPath(), Arrays.asList(index1Type1, index1Type1Bis, index1Type1Ter));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.