mirror of
https://review.haiku-os.org/haiku
synced 2025-02-03 04:07:18 +01:00
30 lines
565 B
C
30 lines
565 B
C
|
/*
|
||
|
* Copyright 2014, Haiku, Inc. All Rights Reserved.
|
||
|
* Distributed under the terms of the MIT License.
|
||
|
*/
|
||
|
#ifndef _GEOLOCATION_H
|
||
|
#define _GEOLOCATION_H
|
||
|
|
||
|
|
||
|
#include <Url.h>
|
||
|
|
||
|
|
||
|
class BGeolocation {
|
||
|
public:
|
||
|
BGeolocation();
|
||
|
BGeolocation(const BUrl& service);
|
||
|
|
||
|
status_t LocateSelf(float& latitude, float& longitude);
|
||
|
status_t Locate(const BString placeName, float& latitude,
|
||
|
float& longitude);
|
||
|
status_t Name(const float latitude, const float longitude,
|
||
|
BString& name);
|
||
|
|
||
|
private:
|
||
|
BUrl fService;
|
||
|
static const BUrl kDefaultService;
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif
|