jazzzooo
54a3e03b45
[fix] engine - openstreetmap currency matching
2023-09-12 20:57:05 +02:00
Alexandre Flament
e16c007c22
[fix] openstreetmap engine
...
It seems there is an API change:
extratags can be either a dictionnary or None.
This commit avoid crash when extratags is None
Test query "!osm gare du nord"
2023-08-27 11:49:16 +02:00
Markus Heiser
8df1f0c47e
[mod] add 'Accept-Language' HTTP header to online processores
...
Most engines that support languages (and regions) use the Accept-Language from
the WEB browser to build a response that fits to the language (and region).
- add new engine option: send_accept_language_header
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-08-01 17:01:59 +02:00
Markus Heiser
5831c15b49
[fix] engines/openstreetmap.py typo: user_langage --> user_language
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-07-02 16:51:25 +02:00
Alexandre Flament
6716c6b0c3
openstreetmap engine: return the localized named.
...
For example: display "Tokyo" instead of "東京都" when the language is English.
2022-07-02 16:51:25 +02:00
Markus Heiser
906a0a99cd
[fix] openstreatmap: load thumbnail from uploads.wikimedia.org
...
Openstreatmap images are now loaded from uploads.wikimedia.org instead of
commons.wikimedia.org to prevent redirects.
With `image_proxy` enabled images from commons.wikimedia.org cant be loaded
since they are redirected. We already discussed this issue [875] and
@tiekoetter fixed this issue in PR [878].
Related-to:
- [875] https://github.com/searxng/searxng/issues/875
- [878] https://github.com/searxng/searxng/pull/878
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-07 13:05:52 +01:00
Markus Heiser
3d96a9839a
[format.python] initial formatting of the python code
...
This patch was generated by black [1]::
make format.python
[1] https://github.com/psf/black
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-12-27 09:26:22 +01:00
Alexandre Flament
ab569c1e12
[fix] openstreetmap engine: optmizer SPARQL query
...
add
hint:Query hint:optimizer "None".
to the SPARQL query to keep the response time small.
It tells the optimizer to follow the path from ?item to the different property values
instead of the other way around.
See https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization#Property_paths
2021-09-25 11:16:22 +02:00
Alexandre Flament
6f11b61cd5
[fix] openstreetmap engine: map "all" language to English
2021-09-24 20:12:18 +02:00
Alexandre Flament
f8793fbda0
[fix] logger per engine: make .logger is always initialized
...
the openstreetmap engine imports code from the wikidata engine.
before this commit, specific code make sure to copy the logger variable to the wikidata engine.
with this commit searx.engines.load_engine makes sure the .logger is initialized.
The implementation scans sys.modules for module name starting with searx.engines.
2021-09-13 08:47:59 +02:00
Markus Heiser
f0059b80ed
[pylint] engines: drop no longer needed 'missing-function-docstring'
...
Suggested-by: @dalf https://github.com/searxng/searxng/issues/102#issuecomment-914168470
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-07 13:26:59 +02:00
Alexandre Flament
ea60c03827
[fix] fix openstreetmap engine
...
close #298
This is a workaround: inside engine code, any call to function in another engine can crash
since the logger won't be initialized except if it is done explicitly.
2021-09-06 22:44:22 +02:00
Markus Heiser
bf10b4a857
[fix] openstreetmap - fix some minor whitespace & indentation issues
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-09 18:08:23 +02:00
Alexandre Flament
c75425655f
[enh] openstreetmap / map template: improve results
...
implements ideas described in #69
* update the engine
* use wikidata
* update map.html template
2021-06-09 18:08:23 +02:00
Alexandre Flament
a4dcfa025c
[enh] engines: add about variable
...
move meta information from comment to the about variable
so the preferences, the documentation can show these information
2021-01-14 20:57:17 +01:00
Dalf
c225db45c8
Drop Python 2 (4/n): SearchQuery.query is a str instead of bytes
2020-09-10 10:49:42 +02:00
Dalf
1022228d95
Drop Python 2 (1/n): remove unicode string and url_utils
2020-09-10 10:39:04 +02:00
Adam Tauber
aa7c043ff4
[fix] resolve pep8 errors
2020-06-10 00:34:57 +02:00
Adam Tauber
2c6531b233
[enh] add routing directions to osm search - closes #254
2020-06-09 17:18:44 +02:00
Adam Tauber
f8713512be
[fix] convert byte query to string in osm engine - fixes #1220
2019-12-21 20:56:38 +01:00
Adam Tauber
52e615dede
[enh] py3 compatibility
2017-05-15 12:02:30 +02:00
Adam Tauber
72a217f983
[mod] return empty string on missing osm title
...
Sometimes openstreetmap returns with None as title. In these cases use an empty
string instead.
2016-12-09 19:53:54 +01:00
Alexandre Flament
4689fe341c
update versions.cfg to use the current up-to-date packages
2015-05-02 15:45:17 +02:00
Cqoicebordel
d0a1df881a
Openstreetmap's unit test
2015-02-07 01:15:04 +01:00
Thomas Pointhuber
672f1c674c
[fix] pep8
2014-12-16 17:01:25 +01:00
Thomas Pointhuber
5ae38bafdf
[enh] add photon engine
2014-12-16 15:01:05 +01:00
dalf
7c13d630e4
[fix] pep8 : engines (errors E121, E127, E128 and E501 still exist)
2014-12-07 16:37:56 +01:00
Thomas Pointhuber
4b75d41f86
[enh][oscar_template] loading map informations from overpass-api
2014-11-19 15:49:55 +01:00
Thomas Pointhuber
bc12a76fbb
[fix] use address.city if possible
2014-11-03 18:53:04 +01:00
Thomas Pointhuber
c38917bb2a
[enh] template_oscar: show addressdata if possible
2014-11-03 18:46:58 +01:00
Thomas Pointhuber
740594a4b7
[enh] oscar_template: initial osm-map support for map results
...
* TODO: remove leaflet.min.css if not required
2014-11-02 13:00:28 +01:00
Adam Tauber
3319091496
[enh] new engine: openstreetmap
2014-09-06 14:09:03 +02:00