Geolocation.h revision 1d38b7a8
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
12class BGeolocation {
13public:
14				BGeolocation();
15				BGeolocation(const BUrl& service);
16
17	status_t	LocateSelf(float& latitude, float& longitude);
18	status_t	Locate(const BString placeName, float& latitude,
19					float& longitude);
20	status_t	Name(const float latitude, const float longitude,
21					BString& name);
22
23private:
24					BUrl	fService;
25	static const	char*	kDefaultService;
26};
27
28
29#endif
30