1/*
2 * Copyright 2014-2019, 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 <Country.h>
10#include <Url.h>
11
12
13namespace BPrivate {
14
15namespace Network {
16
17class BGeolocation {
18public:
19				BGeolocation();
20				BGeolocation(const BUrl& geolocationService,
21					const BUrl& geocodingService);
22
23	status_t	LocateSelf(float& latitude, float& longitude);
24	status_t	Locate(const BString placeName, float& latitude,
25					float& longitude);
26
27	status_t	Name(const float latitude, const float longitude,
28					BString& name);
29	status_t	Country(const float latitude, const float longitude,
30					BCountry& country);
31
32private:
33					BUrl	fGeolocationService;
34					BUrl	fGeocodingService;
35
36	static const	char*	kDefaultGeolocationService;
37	static const	char*	kDefaultGeocodingService;
38};
39
40}	// namespace Network
41
42}	// namespace BPrivate
43
44
45#endif
46