brunosalerno / overpass-api-ruby Goto Github PK
View Code? Open in Web Editor NEWA Ruby wrapper for OpenStreetMap Overpass API
License: MIT License
A Ruby wrapper for OpenStreetMap Overpass API
License: MIT License
Doc defines endpoint default as
http://overpass-api.de/api/interpreter
It is actually
http://overpass-api.de/api/interpreter?data=
This means any user defined endpoint needs to add ?data=
Not great, ideally, the endpoint should just be the URL without the data param.
see https://josm.openstreetmap.de/ticket/15141 for an equivalent issue in JOSM
very large queries hit URL limit that may be solved by using POST rather than get
see https://gist.github.com/matkoniecz/b27f17f34832fdf2115c915cee46c158 for an example resulting in
D, [2017-09-12T15:47:01.976710 #8997] DEBUG -- : HTTPI GET request to overpass-api.de (excon)
/var/lib/gems/2.3.0/gems/json-2.1.0/lib/json/common.rb:156:in `parse': 765: unexpected token at '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> (JSON::ParserError)
<html><head>
<title>414 Request-URI Too Long</title>
</head><body>
<h1>Request-URI Too Long</h1>
<p>The requested URL's length exceeds the capacity
limit for this server.<br />
</p>
<hr>
<address>Apache/2.4.18 (Ubuntu) Server at overpass-api.de Port 80</address>
</body></html>
'
from /var/lib/gems/2.3.0/gems/json-2.1.0/lib/json/common.rb:156:in `parse'
from /home/mateusz/.gem/ruby/2.3.0/gems/overpass-api-ruby-0.2.3/lib/base.rb:34:in `perform'
from /home/mateusz/.gem/ruby/2.3.0/gems/overpass-api-ruby-0.2.3/lib/base.rb:22:in `query'
from test.rb:413:in `<main>'
Recent changes causing error:
Unknown attribute "maxsize" in element "osm-script"
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.