sozialhelden / rosemary Goto Github PK
View Code? Open in Web Editor NEWRosemary - put a little OpenStreetMap spice to your geo app.
Home Page: https://github.com/sozialhelden/rosemary
License: MIT License
Rosemary - put a little OpenStreetMap spice to your geo app.
Home Page: https://github.com/sozialhelden/rosemary
License: MIT License
Please stop the use of wheelchair=unknown (example: http://www.openstreetmap.org/browse/node/2478755624). Added from scratch, this tag conveys the same information as the plain absence of a wheelchair tag. Sometimes existing wheelchair=yes|no are replaced by unknown: in these cases information previously entered is destroyed.
If a tag contains &
and you edit this POI via Wheelmap web interface, Wheelmap replaces &
by &
afterwards. At the second time you edit this object via Wheelmap, Wheelmap replaces &
by &
at OSM data. In other words, every time a Wheelmap user modifies an object which has a tag which contains &
, this &
is changed to &
. This changes OSM data (or, in other words, corrupts them).
Example: If I go to Sachsenheim station, click on "Edit" and afterwards on "Save" (without editing anything) operator=DB Station&Service AG
is replaced by operator=DB Station&Service AG
.
It seems that every OSM tag can be corrupted this way. I have fixed this type of data corruption today in whole Germany (search data via Overpass API and fix it object by object).
The bug only occurs if the data is edited by logged-in users. Edits done anonymously do not cause these data corruptions. It seems that only the web interface and neither the Android nor the iOS app is affected.
As far as I can tell, there is no way of overriding the hard-coded default server URI in the constructor or elsewhere (without patching the code, obviously). A default of the OSM servers is fine, but the user should be able to pass their own server details into the constructor (e.g. to make the library access XAPI instead of the editing API).
When I added a node, for example :
node = Rosemary::Node.new(:lat => x, :lon => y , :tags => "amenity=restaurant")
is this correct? and if it's not, is there a way to add features?
It looks like the Rosemary editor can create a tag that gives warnings in JOSM editor version 11441.
Changeset: 34767398
Node: 462911379
Version 8
created_by rosemary v0.4.4
wheelchair:description
There are 2 warnings:
Multiple white spaces
Character code less than 0x20
Before uploading an object to OSM, please make sure to trim extra whitespace in tags that have been modified, e.g. wheelchair:description=" Stufen". Wheelmap is one of the main sources of such superfluous whitespace. The easiest solution will probably be to apply trimming immediately when reading the contents of a text field.
I want to extract the GIS geometry from a given OSM node/way/relation and use it with rgeo or any other ruby geo library.
It is currently not possible to retrieve multiple elements at once. For instance, if I want to download all nodes relating to a relation, I have to load all its ways first, and then all corresponding nodes. Each element generates a HTTP get request. As a result, a relation consisting of say 10 ways with 10 nodes each requires 111 HTTP get requests.
The API, however, supports the retrieval of multiple elements at once:
"Multi fetch: GET /api/0.6/[nodes|ways|relations]?#parameters
Allows a user to fetch multiple elements at once.
Parameters
[nodes|ways|relations]=comma separated list
The parameter has to be the same in the URL (e.g. /api/0.6/nodes?nodes=123,456,789)"
(from http://wiki.openstreetmap.org/wiki/API_v0.6)
It would be really nice if your API could implement methods like "api.find_nodes([1,2,3,4,5])" to get multiple elements at once.
./lib/rosemary/tags.rb:19 :in []=' ./lib/rosemary/element.rb:135 :in
block in add_tags'
./lib/rosemary/element.rb:134 :in each' ./lib/rosemary/element.rb:134 :in
add_tags'
./spec/models/node_spec.rb:170 :in `block (2 levels) in <top (required)>'
Over the past months, wheelmap users have been seen to create nodes at (0,0).
Recent examples:
http://www.openstreetmap.org/browse/node/2477746336
http://www.openstreetmap.org/browse/node/2477776715
http://www.openstreetmap.org/browse/node/2477827988
http://www.openstreetmap.org/browse/node/2477829306
http://www.openstreetmap.org/browse/node/2476606286
http://www.openstreetmap.org/browse/node/2477373663
http://www.openstreetmap.org/browse/node/2477827988
http://www.openstreetmap.org/browse/node/2477869790
Please add notes support:
I get Service Unavailable (Rosemary::Unavailable) while testing the explample codes
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.