Coder Social home page Coder Social logo

overpass-api-ruby's Issues

Use post instead of get to allow very large querries

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>'

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.