summaryrefslogtreecommitdiff
path: root/searx/engines/openstreetmap.py
AgeCommit message (Collapse)Author
2024-05-16[mod] simple theme: drop img_src from default resultsMarkus Heiser
The use of img_src AND thumbnail in the default results makes no sense (only a thumbnail is needed). In the current state this is rather confusing, because img_src is displayed like a thumbnail (small) and thumbnail is displayed like an image (large). Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2024-03-11[mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTIONMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2023-09-18[fix] spellingjazzzooo
2023-09-13 [fix] engine - openstreetmap currency renderingjazzzooo
2023-09-12[fix] engine - openstreetmap currency matchingjazzzooo
2023-08-27[fix] openstreetmap engineAlexandre Flament
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"
2022-08-01[mod] add 'Accept-Language' HTTP header to online processoresMarkus Heiser
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-07-02[fix] engines/openstreetmap.py typo: user_langage --> user_languageMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-07-02openstreetmap engine: return the localized named.Alexandre Flament
For example: display "Tokyo" instead of "東京都" when the language is English.
2022-02-07[fix] openstreatmap: load thumbnail from uploads.wikimedia.orgMarkus Heiser
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>
2021-12-27[format.python] initial formatting of the python codeMarkus Heiser
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-09-25[fix] openstreetmap engine: optmizer SPARQL queryAlexandre Flament
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-24[fix] openstreetmap engine: map "all" language to EnglishAlexandre Flament
2021-09-13[fix] logger per engine: make .logger is always initializedAlexandre Flament
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-07[pylint] engines: drop no longer needed 'missing-function-docstring'Markus Heiser
Suggested-by: @dalf https://github.com/searxng/searxng/issues/102#issuecomment-914168470 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-06[fix] fix openstreetmap engineAlexandre Flament
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-06-09[fix] openstreetmap - fix some minor whitespace & indentation issuesMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-09[enh] openstreetmap / map template: improve resultsAlexandre Flament
implements ideas described in #69 * update the engine * use wikidata * update map.html template
2021-01-14[enh] engines: add about variableAlexandre Flament
move meta information from comment to the about variable so the preferences, the documentation can show these information
2020-09-10Drop Python 2 (4/n): SearchQuery.query is a str instead of bytesDalf
2020-09-10Drop Python 2 (1/n): remove unicode string and url_utilsDalf
2020-06-10[fix] resolve pep8 errorsAdam Tauber
2020-06-09[enh] add routing directions to osm search - closes #254Adam Tauber
2019-12-21[fix] convert byte query to string in osm engine - fixes #1220Adam Tauber
2017-05-15[enh] py3 compatibilityAdam Tauber
2016-12-09[mod] return empty string on missing osm titleAdam Tauber
Sometimes openstreetmap returns with None as title. In these cases use an empty string instead.
2015-05-02update versions.cfg to use the current up-to-date packagesAlexandre Flament
2015-02-07Openstreetmap's unit testCqoicebordel
2014-12-16[fix] pep8Thomas Pointhuber
2014-12-16[enh] add photon engineThomas Pointhuber
2014-12-07[fix] pep8 : engines (errors E121, E127, E128 and E501 still exist)dalf
2014-11-19[enh][oscar_template] loading map informations from overpass-apiThomas Pointhuber
2014-11-03[fix] use address.city if possibleThomas Pointhuber
2014-11-03[enh] template_oscar: show addressdata if possibleThomas Pointhuber
2014-11-02[enh] oscar_template: initial osm-map support for map resultsThomas Pointhuber
* TODO: remove leaflet.min.css if not required
2014-09-06[enh] new engine: openstreetmapAdam Tauber