*
* Copyright (c) 2010-2013 Samsung Electronics Co., Ltd. All rights reserved.
*
- * Contact: Youngae Kang <youngae.kang@samsung.com>, Minjune Kim <sena06.kim@samsung.com>
- * Genie Kim <daejins.kim@samsung.com>
- *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
}
EXPORT_API LocationPosition *
-location_position_new(guint timestamp,
- gdouble latitude,
- gdouble longitude,
- gdouble altitude,
- LocationStatus status)
+location_position_new(guint timestamp, gdouble latitude, gdouble longitude, gdouble altitude, LocationStatus status)
{
if (latitude < -90 || latitude > 90) return NULL;
if (longitude < -180 || longitude > 180) return NULL;
LocationPosition *new_position = NULL;
- new_position = location_position_new(position->timestamp,
- position->latitude,
- position->longitude,
- position->altitude,
- position->status);
+ new_position = location_position_new(position->timestamp, position->latitude, position->longitude, position->altitude, position->status);
return new_position;
*lat = atoi(latitude);
*lon = atoi(longitude);
- if (*d_lat == 'S') {
+ if (*d_lat == 'S')
*lat = *lat * -1;
- }
- if (*d_lon == 'W') {
+
+ if (*d_lon == 'W')
*lon = *lon * -1;
- }
}