Opened 13 years ago

Last modified 7 years ago

#206 new enhancement

Add ability to search GPX traces by tag

Reported by: steve@… Owned by: steve@…
Priority: major Milestone:
Component: website Version:
Keywords: gpx Cc: chippy2005@…

Description

use something like

<form name="tag choice" action="/traces/" method="GET"><input type="text" name="tag" id="tag" value="foo" /><input type="submit" value="submit" id="submitbutton" /></form>

function changeTags() {
  var thetag = document.getElementById('tag').value;
  if (thetag && thetag.length > 0) {
    location.href="http://www.openstreetmap.org/traces/tag/"+thetag;
  }
}

Attachments (1)

tagsearch.patch (1.9 KB) - added by chippy 10 years ago.
tag search form and searching for tags using like

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by chippy

tag search form and searching for tags using like

comment:1 Changed 10 years ago by chippy

Added patch with a new search form partial view to show up under the title on the various traces page. Also changed the trace_controller sql to find tags with a LIKE condition for tags beginning with the search query.
For example, it can now list all those traces that start with "little" and should return traces with tag "littlehampton" or "littlehaven".
Hope it's ok.

comment:2 Changed 10 years ago by chippy

  • Cc chippy2005@… added

comment:3 Changed 10 years ago by openstreetmap@…

keep open?

comment:4 Changed 7 years ago by TomH

  • Summary changed from ability to search/ find tags to Add ability to search GPX traces by tag
  • Type changed from defect to enhancement

comment:5 Changed 7 years ago by stevens

  • Keywords gpx added
Note: See TracTickets for help on using tickets.