Actions

QS

Location mapservice: Difference between revisions

From LimeSurvey Manual

(Marked this version for translation)
mNo edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 10: Line 10:


<!--T:321-->
<!--T:321-->
If this option is activated, then the short free text will display a map and not a text box (they cannot be used both together concurrently).
If this option is activated, then the [[Question_type_-_Short_free_text|free text question type]] will display a map and not a text box to the respondents (they cannot be used both together concurrently).
 
<!--T:322-->
{{Alert|Title=Attention|text=If the question design involves the display of a map, leave the defaultRows blank. Placing a number in the respective field (such as 0 or 1) removes the map from the generated HTML code, causing other errors.}}


<!--T:327-->
<!--T:327-->
Line 20: Line 17:
*OpenStreetMap via MapQuest
*OpenStreetMap via MapQuest
*Google Maps
*Google Maps
<!--T:328-->
{{Alert|Google Maps needs a valid [[Global_settings#General|Google Map API Key]]!}}


<!--T:323-->
<!--T:323-->
<div class="simplebox"> [[File:help.png]] If the '''Google Maps''' option is selected and the question is set to '''mandatory''', the respondent must move the red point or enter the geographical data in the latitude/longitude textbox. The user cannot rely on the default values and hit the "Next" button. It is highly recommended to advise the users about this beforehand in the question text.</div>
{{Note|If the ''Google Maps'' option is selected and the question is set to '''mandatory''', the respondent must move the red point or enter the geographical data in the latitude/longitude textbox. The user cannot rely on the default values and hit the "Next" button. It is highly recommended to advise the users about this beforehand in the question text.}}
 
 
<!--T:329-->
'''Advanced'''
 
 
<!--T:330-->
{{Note|''OpenStreetMap via MapQuest'' uses [https://www.geonames.org/ GeoNames] for the search box (with a user created for LimeSurvey). If you need to be sure that your access has not been restricted or if you use the GeoNames API a lot, the best best solution is to use [https://www.geonames.org/export/web-services.html GeoNames Webservices] and set it up in your [[Optional_settings#Introduction|config.php]] file.}}


 
<!--T:324-->
<!--T:324-->
</onlyinclude>
</onlyinclude>

Latest revision as of 09:35, 5 June 2019


Use mapping service (location_mapservice)

Description

If this option is activated, then the free text question type will display a map and not a text box to the respondents (they cannot be used both together concurrently).

Available options

  • Off (default)
  • OpenStreetMap via MapQuest
  • Google Maps


  Google Maps needs a valid Google Map API Key!



If the Google Maps option is selected and the question is set to mandatory, the respondent must move the red point or enter the geographical data in the latitude/longitude textbox. The user cannot rely on the default values and hit the "Next" button. It is highly recommended to advise the users about this beforehand in the question text.


Advanced


OpenStreetMap via MapQuest uses GeoNames for the search box (with a user created for LimeSurvey). If you need to be sure that your access has not been restricted or if you use the GeoNames API a lot, the best best solution is to use GeoNames Webservices and set it up in your config.php file.