Welcome to mirror list, hosted at ThFree Co, Russian Federation.

geourl_process.hpp « map - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: aee27e1881509621f99dfe22d7f7b7485439caae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once

#include "geometry/rect2d.hpp"

#include "std/string.hpp"


namespace url_scheme
{
  struct Info
  {
    double m_lat, m_lon, m_zoom;

    bool IsValid() const;
    void Reset();

    Info()
    {
      Reset();
    }

    void SetZoom(double x);
    bool SetLat(double x);
    bool SetLon(double x);
  };

  void ParseGeoURL(string const & s, Info & info);
}