EIDA / routing

Server side application to provide the Routing Service used in EIDA
GNU General Public License v3.0
6 stars 4 forks source link

No way to filter routes properly if the request contains only the station #3

Closed javiquinte closed 7 years ago

javiquinte commented 8 years ago

If the request has only a station code, there is no way to filter out routes containing only a network code. For instance: route XX.* and query *.APE. This can never be filtered out because there is no match. One possible solution could be to query a list of station codes from the station-WS service if it's available.

javiquinte commented 7 years ago

Implemented since commit 77d8d5d07abd79d4e72a28aa6e6400d317e4f995 For instance, a query like:

http://sec24c79.gfz-potsdam.de/eidaws/routing/1/query?sta=ECAL&format=post

returns:

http://www.orfeus-eu.org/fdsnws/dataselect/1/query ES ECAL 1980-01-01T00:00:00 2017-04-13

For every route to a station-WS the parameters are sent and the station list is cached. This list is later used for other services in order to be able to match better than what we can with the wildcards. For instance, sta=ECAL would match any route with a defined network and a station with *. However, with the cache we can know to which networks this station belongs to.