Geolocation.h revision 3006031a
1/*
2 * Copyright 2014, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 */
5#ifndef _GEOLOCATION_H
6#define _GEOLOCATION_H
7
8
9#include <Url.h>
10
11
12namespace BPrivate {
13
14
15class BGeolocation {
16public:
17				BGeolocation();
18				BGeolocation(const BUrl& service);
19
20	status_t	LocateSelf(float& latitude, float& longitude);
21	status_t	Locate(const BString placeName, float& latitude,
22					float& longitude);
23	status_t	Name(const float latitude, const float longitude,
24					BString& name);
25
26private:
27					BUrl	fService;
28	static const	char*	kDefaultService;
29};
30
31
32}	// namespace BPrivate
33
34
35#endif
36