Giter Club home page Giter Club logo

restriction-validator's People

Contributors

morbz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

restriction-validator's Issues

Show restriction:conditional on the map

I have seen the code, which only shows "restriction" but no "restriction:" because the code does not support restrictions for vehicle types. However, the suffix ":" is not only for vehicle types; there is also "restriction:conditional" which is for restriction for a given time.

In fact, in Bogota, Colombia, and other cities, we have "ciclovia" which is a kind of cycleway on main street, only on Sunday and Holiday mornings, that blocks cars to only allow cyclists and pedestrians. This fact creates temporal restrictions for motor vehicles.

We already mapped the ciclovias with this restriction type, and we would like to see them on your page. I have made a fork for it (but I could it complete it), because I am not a developer. I also translated it into Spanish because a map like this could engage people locally.

Wrong Bounding Box Parameters

Hello,

I noticed a problem when you zoom so far out that the world map appears multiple times next to each other: If you zoom back in onto a "parallel world" the coordinates in the URL as well as the bounding box passed to the overpass API overflow to supported +/-180 degree range. Therefore overpass returns an 400 Bad Request and no results can be rendered:

Response:

The data included in this document is from www.openstreetmap.org. The data is made available under ODbL.

Error: line 1: static error: For the attribute "w" of the element "bbox-query" the only allowed values are floats between -180.0 and 180.0.

Error: line 1: static error: For the attribute "e" of the element "bbox-query" the only allowed values are floats between -180.0 and 180.0. 

Request Data Paramter:

data: [out:json][timeout:25];(relation["type"="restriction"](51.44822083607407,-360.077051281929,51.45049784738731,-360.0710468888283);node(r);way(bn)["highway"]["highway"~"^motorway|^trunk|^primary|^secondary|^tertiary|living_street|unclassified|residential|service|road"];);out body;>;out body;

This can be easily prevented by staying in the "correct" world, but it is non-intuitive to figure this out.

Switch to overpass-api.de server?

The rambler.ru Overpass instance is currently delivering quite outdated data (~couple of days old). It would make sense to switch to the overpass-api.de server which is in general more reliable.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.