mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-22 22:23:44 +00:00
refactor charge sockets data processing into dedicated class
While here, add method to generate the OSM keys corresponding to a socket list. Signed-off-by: Séverin Lemaignan <severin@guakamole.org>
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
|
||||
#include "coding/string_utf8_multilang.hpp"
|
||||
|
||||
#include "feature_helpers/feature_charge_sockets.hpp"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@@ -17,17 +19,6 @@ namespace osm
|
||||
{
|
||||
class EditableMapObject;
|
||||
|
||||
// struct to store the representation of a charging station socket
|
||||
struct ChargeSocketDescriptor
|
||||
{
|
||||
std::string type; // https://wiki.openstreetmap.org/wiki/Key:socket:*
|
||||
// e.g. "type1"
|
||||
unsigned int count; // number of sockets; 0 means socket present, but unknown count
|
||||
// (eg, OSM tag for count set to 'yes')
|
||||
double power; // power output, in kW. 0 means unknown.
|
||||
};
|
||||
typedef std::vector<ChargeSocketDescriptor> ChargeSocketDescriptors;
|
||||
|
||||
class MapObject
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user