- Mapbox
geometry.hpp
compatible with EOSIO Smart Contracts - GeoJSON & Map Vector Tile Services
- UI map example for Block Explorers
Create node (longitude & latitude) with tags
{name} owner
- creator of the node{point} node
- point{x, y}{vector<tag>} tags
- array of key & value tags
{uint64_t}
node id
cleos push action xy createnode '["myaccount", [45.0, 110.5], [{"k": "key", "v": "value"}]]'
Create way with tags
{name} owner
- creator of the way{vector<point>} way
- way{vector<tag>} tags
- array of key & value tags
{uint64_t}
way id
cleos push action xy createway '["myaccount", [[45.0, 110.5], [25.0, 130.5]], [{"k": "key", "v": "value"}]]'
Create relation with tags
{name} owner
- creator of the way{vector<member>} member
- array of member{vector<tag>} tags
- array of key & value tags
{uint64_t}
member id
cleos push action xy createway '["myaccount", [{"type": "way", "ref": 1, "role": "outer"}], [{"k": "key", "v": "value"}]]'
Erase node and all associated tags
{name} user
- authenticated user{vector<uint64_t>} ids
- array of node identifiers
cleos push action xy erase '["myaccount", [0]]'
Move node to a new location
{name} user
- authenticated user{uint64_t} id
- point identifier{point} node
- point{x, y}
cleos push action xy move '["myaccount", 0, [45.0, 110.5]]'
Modify tags from a node
{name} user
- authenticated user{uint64_t} id
- node identifier{vector<tag>} tags
- array of key & value tags
cleos push action xy modify '["myaccount", 0, [{"k": "key", "v": "value"}]]'
{name} k
- key{string} v
- value
{
"k": "building",
"v": "yes"
}
{name} type
- type of member (way or node){uint64_t} ref
- ref id of way or node{name} role
- role of member
{
"type": "way",
"ref": 123,
"role": "outer"
}
{uint64_t} id
- object unique identifier{point} node
- point{x, y} coordinate{name} owner
- creator of object{uint32_t} version
- amount of times object has been modified{time_point_sec} timestamp
- last time object was modified{checksum256} changeset
- transaction ID used to last modify object{vector<tag>} tags
- array of tags associated to object tag{key, value}
{
"id": 0,
"node": {"x": 45.0, "y": 110.5},
"owner": "myaccount",
"version": 1,
"timestamp": "2019-08-07T18:37:37",
"changeset": "0e90ad6152b9ba35500703bc9db858f6e1a550b5e1a8de05572f81cdcaae3a08",
"tags": [ { "k": "key", "v": "value" } ]
}
{uint64_t} id
- object unique identifier{vector<uint64_t} refs
- array of node ids{name} owner
- creator of object{uint32_t} version
- amount of times object has been modified{time_point_sec} timestamp
- last time object was modified{checksum256} changeset
- transaction ID used to last modify object{vector<tag>} tags
- array of tags associated to object tag{key, value}
{
"id": 0,
"refs": [0, 1],
"owner": "myaccount",
"version": 1,
"timestamp": "2019-08-07T18:37:37",
"changeset": "0e90ad6152b9ba35500703bc9db858f6e1a550b5e1a8de05572f81cdcaae3a08",
"tags": [ { "k": "key", "v": "value" } ]
}
{uint64_t} id
- object unique identifier{vector<member} members
- array of member{type, ref, role}{name} owner
- creator of object{uint32_t} version
- amount of times object has been modified{time_point_sec} timestamp
- last time object was modified{checksum256} changeset
- transaction ID used to last modify object{vector<tag>} tags
- array of tags associated to object tag{key, value}
{
"id": 0,
"members": [{"type": "way", "ref": 1, "role": "outer"}],
"owner": "myaccount",
"version": 1,
"timestamp": "2019-08-07T18:37:37",
"changeset": "0e90ad6152b9ba35500703bc9db858f6e1a550b5e1a8de05572f81cdcaae3a08",
"tags": [ { "k": "key", "v": "value" } ]
}
{uint64_t} available_primary_key
- global id for node/way/relation