summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
27deffd)
Change-Id: I04330b71c04bc82a49eef8c3fbe4d55fc6ada339
location_coords_s center;
center.latitude = 37.258;
center.longitude = 127.056;
location_coords_s center;
center.latitude = 37.258;
center.longitude = 127.056;
+ location_coords_s position;
+ position.latitude = 37.368;
+ position.longitude = 128.002;
location_bounds_h bounds_circle;
ret = location_bounds_create_circle(center, radius, &bounds_circle);
if (ret != LOCATION_BOUNDS_ERROR_NONE)
location_bounds_h bounds_circle;
ret = location_bounds_create_circle(center, radius, &bounds_circle);
if (ret != LOCATION_BOUNDS_ERROR_NONE)
} else
fprintf(stderr, "location_bounds_get_circle_coords(center: %lf, %lf, radius: %lf) \n", center2.latitude,
center2.longitude, radius2);
} else
fprintf(stderr, "location_bounds_get_circle_coords(center: %lf, %lf, radius: %lf) \n", center2.latitude,
center2.longitude, radius2);
+ if (location_bounds_contains_coordinates_on_edge(bounds_circle, position, tolerance))
+ fprintf(stderr, "location_bounds_contains_coordinates_on_edge() retrun TRUE \n");
+ else
+ fprintf(stderr, "location_bounds_contains_coordinates_on_edge() retrun FALSE \n");
/*Add the rect bounds */
location_coords_s left_top;
/*Add the rect bounds */
location_coords_s left_top;
fprintf(stderr, "location_bounds_get_rect_coords(left_top: %lf, %lf - right_bottom: %lf, %lf) \n", left_top2.latitude,
left_top2.longitude, right_bottom2.latitude, right_bottom2.longitude);
fprintf(stderr, "location_bounds_get_rect_coords(left_top: %lf, %lf - right_bottom: %lf, %lf) \n", left_top2.latitude,
left_top2.longitude, right_bottom2.latitude, right_bottom2.longitude);
+ if (location_bounds_contains_coordinates_on_edge(bounds_rect, position, tolerance))
+ fprintf(stderr, "location_bounds_contains_coordinates_on_edge() retrun TRUE \n");
+ else
+ fprintf(stderr, "location_bounds_contains_coordinates_on_edge() retrun FALSE \n");
+
/*Add the polygon bounds */
int poly_size = 3;
/*Add the polygon bounds */
int poly_size = 3;
else
fprintf(stderr, "location_bounds_contains_coordinates() retrun FALSE \n");
else
fprintf(stderr, "location_bounds_contains_coordinates() retrun FALSE \n");
+ if (location_bounds_contains_coordinates_on_edge(bounds_poly, test_coords, tolerance))
+ fprintf(stderr, "location_bounds_contains_coordinates_on_edge() retrun TRUE \n");
+ else
+ fprintf(stderr, "location_bounds_contains_coordinates_on_edge() retrun FALSE \n");
+
/*print current bounds */
ret = location_manager_foreach_boundary(manager, __location_bounds_cb, (void *)manager);
if (ret != LOCATIONS_ERROR_NONE)
/*print current bounds */
ret = location_manager_foreach_boundary(manager, __location_bounds_cb, (void *)manager);
if (ret != LOCATIONS_ERROR_NONE)