Commit graph

63 commits

Author SHA1 Message Date
Shaun McDonald
635daf1773 Adding a restriction to prevent more than 2000 nodes to be added to any way. Tests still need to be written. Capabilities api request also updated. 2008-11-03 00:12:18 +00:00
Shaun McDonald
b45dd63283 cover the other extreme in the map bounary sanitizeation. Ading some documentation, which is parsed when running rake doc:app. Fixing up a couple of tests. 2008-10-26 23:43:37 +00:00
Shaun McDonald
3e9ceb0c38 more testing of the api. Changing the generator so that it is a constant to come in line with the server url and the api version. Adding tracepoints per page to the capabilities api call. Better error message for api call. 2008-10-19 07:09:04 +00:00
Shaun McDonald
24b21e4a29 additional consistency checks. making the error message for the number of nodes use the configured number of nodes, rather than a hard coded number. minor improvements to the way controller functional tests. Not sure if they should be turned into integration tests. 2008-10-12 22:32:51 +00:00
Shaun McDonald
d9e070e069 Doing a resync from mainline 8633:10895. There was one simple to resolve conflict on app/models/node.rb. Also moving the migrations for API0.6 to new sequence numbers since there was some new migrations added to mainline, where the migration numbers would conflict if not moved. 2008-09-25 15:06:05 +00:00
Tom Hughes
d6e047d7d4 Optimise finding of relations, partially reversing change #8443 but in
a more rails like way.
2008-07-16 23:42:59 +00:00
Tom Hughes
6644f115c9 Add bounds to map responses. Closes #1011. 2008-07-08 09:52:08 +00:00
Shaun McDonald
5f8ab9e924 Merge changes from trunk 7673:8632. 2008-07-03 13:06:24 +00:00
Tom Hughes
def60c1935 Railsify relation selection (aka ripping out the f***in SQL). 2008-06-24 23:42:39 +00:00
Christopher Schmidt
6aa9ec599f Make capabilities report the current version for from/to version
identifier
2008-05-11 21:23:38 +00:00
Christopher Schmidt
412472212b change 'no nodes' response to use API_VERSION in output 2008-05-11 21:21:30 +00:00
Tom Hughes
cb3992f5a1 Mark map responses as attachments. 2008-04-19 13:35:02 +00:00
Tom Hughes
ddb003f0f2 Headers is an array not a function... 2008-04-19 13:29:10 +00:00
Tom Hughes
d13ef1db02 More work on export tab. 2008-04-14 23:46:10 +00:00
Richard Fairhurst
ae142c554b Potlatch 0.8 - be afraid, be very, very afraid 2008-03-19 01:03:51 +00:00
Tom Hughes
d0d396f9b6 Fix indentation. 2008-02-03 15:38:53 +00:00
Xin Zheng
2e2956d126 patched controller section of #648 2008-01-25 16:32:24 +00:00
Xin Zheng
6de965520b added application.yml, refactored map method 2008-01-23 16:43:30 +00:00
Tom Hughes
bee38e63a3 Make things work with multipart keys. 2008-01-23 09:53:35 +00:00
Tom Hughes
d29a319ab0 Add an API call to find the map tiles which have changed in a given period. 2007-10-09 23:41:26 +00:00
Tom Hughes
ac8a24e79e Cope with empty areas better. 2007-10-07 12:44:27 +00:00
Gabriel Ebner
e03ea17a22 rails_port_0.5: Merge rails_port r4643 2007-09-22 19:55:33 +00:00
Tom Hughes
df31fe13a5 Use quadtiling for the node tables. 2007-09-21 13:43:43 +00:00
Tom Hughes
9c01c4cb63 Allow the API to be taken offline completely as well as being put into
readonly mode,
2007-09-20 23:51:11 +00:00
Gabriel Ebner
cfbdd3f7e1 Merge rails_port as of r4613 & fix tests. 2007-09-20 14:37:29 +00:00
Tom Hughes
c3f0e12491 Dropping duplicate GPS points is very expensive and rarely finds
anything much to drop, so don't bother.
2007-09-12 13:49:58 +00:00
Tom Hughes
0423884184 Use QuadTiling in GPS point queries. 2007-09-12 12:14:45 +00:00
Tom Hughes
a287d24f12 Use BETWEEN for the node selection in the map API call as MySQL seems to
process it more efficiently.
2007-09-05 17:20:09 +00:00
Frederik Ramm
78b440ffc1 preliminary commit 0.5 API with relations / untested after entity-relation rename, some changes still in queue 2007-08-29 22:00:26 +00:00
Tom Hughes
dc3edbe7c1 Add a capabilities API call. Fixes #410. 2007-08-21 23:27:42 +00:00
Tom Hughes
e70d94c54a Don't create sessions for API calls. 2007-08-14 13:59:07 +00:00
Tom Hughes
7f92d533d0 Give up after reporting that the query found too many nodes. 2007-07-30 21:09:58 +00:00
Tom Hughes
9b67da24c0 Fix deprecation warning. 2007-06-27 18:09:31 +00:00
Tom Hughes
dcad29dad0 Split the rest action into sparate read, update and delete actions thus
allowing authorization to be done on a per-action basis without worring
about the method. This should make the user API work.

Also do a lot of cleanup of the controllers.
2007-06-27 17:27:10 +00:00
Tom Hughes
91461927d4 Fix bogus SQL. 2007-06-24 10:53:37 +00:00
Tom Hughes
a4647430aa Allow all trackpoints to be fetched, not just those from public traces and
the user's own traces. Also restore the 0.3 API functionality that eliminate
duplicate points.
2007-06-24 10:51:29 +00:00
Richard Fairhurst
325aa7ecdf TomH's 500 patch 2007-06-04 08:57:13 +00:00
Steve Coast
a0e8c35c1b various things from TomH 2007-05-29 23:25:41 +00:00
Steve Coast
494975aa8b return a blank 0.4 osm xml doc when on data found 2007-05-22 11:22:17 +00:00
Steve Coast
d4cea98b16 back out eager way_tag loading as it wasn't getting all tags? 2007-05-14 01:51:14 +00:00
Steve Coast
332bcb6b18 do wot john said innit - eagerly load tags in the map call for ways 2007-05-14 00:51:36 +00:00
Steve Coast
1bbe59b6a7 api fixes 2007-05-10 20:17:29 +00:00
Steve Coast
21fd6d3126 updates to api 2007-05-10 19:37:33 +00:00
Steve Coast
9011118cd0 bring checks back 2007-05-10 18:51:37 +00:00
John McKerrell
14b8e7619f Added trackpoint serving support to 0.4 API 2007-05-10 14:07:37 +00:00
Steve Coast
6ccf25b347 various fixes 2007-05-09 17:31:11 +00:00
Nick Black
c5d1f3381d fixes ticket 434 2007-05-08 12:41:04 +00:00
Steve Coast
ec328801e9 return blank <osm> if no nodes found 2007-05-08 07:53:39 +00:00
Steve Coast
513b863bf0 add explicit garbage collection 2007-05-07 13:51:47 +00:00
Steve Coast
89e976c6e5 updates from hacking day 2007-05-06 10:08:00 +00:00