Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Geo-location and location categories

  • sociotech
  • sociotech's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 8 months ago #172453 by sociotech
Geo-location and location categories was created by sociotech
I have a problem generating location categories from coordinates.

I use the short text map feature in order to get geo location. The field is hidden and the geo-coordinate input comes from panel integration and is passed through the URL. This works fine.

I have set the map to save City, state and country but when I check my SQL database it is only the coordinates that are saved. I don't know what I am doing wrong and can't seem to find a post on it.

I am on a self-hosted system and LimeSurvey that runs the latest version.

I very much hope somebody here can help!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 8 months ago - 5 years 8 months ago #172459 by tpartner
Replied by tpartner on topic Geo-location and location categories
How have you hidden that question?

Can you attach a short sample survey containing only the relevant questions?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 5 years 8 months ago by tpartner.
The following user(s) said Thank You: sociotech
The topic has been locked.
  • sociotech
  • sociotech's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 8 months ago #172475 by sociotech
Replied by sociotech on topic Geo-location and location categories
I have just set the hidden and save as city, state and country in the question preferences.

It looks like this:
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 8 months ago #172497 by tpartner
Replied by tpartner on topic Geo-location and location categories
Try hiding the question with CSS instead of the question setting. The mapping is done via JavaScript so the question must be rendered.

There still may be a bug but I cannot test without the sample survey requested.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: sociotech
The topic has been locked.
  • sociotech
  • sociotech's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 8 months ago #172498 by sociotech
Replied by sociotech on topic Geo-location and location categories
thank you very much... I will test it straight away!
The topic has been locked.
  • sociotech
  • sociotech's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 8 months ago #172650 by sociotech
Replied by sociotech on topic Geo-location and location categories
I have now tried to unhide the question in order to see if it made any difference. It sadly did not. Even if I use the location picker manually I do not get any of the location categories saved.

But my issues seem to run deeper than that. Earlier I have created score calculations based on my main subquestions. These equations have also stopped working.

I feel a bit bug-ridden so I have attached my .lss file. I very much hope someone can determine what I am doing wrong.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 8 months ago #172651 by tpartner
Replied by tpartner on topic Geo-location and location categories
Are there any Javascript errors in the console?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: sociotech
The topic has been locked.
  • sociotech
  • sociotech's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 8 months ago #172652 by sociotech
Replied by sociotech on topic Geo-location and location categories
There are one map related error:

JQMIGRATE: Migrate is installed, version 3.0.0 jquery-migrate-3.0.0.min.js:2:440
Google Maps JavaScript API warning: SensorNotRequired developers.google.com/maps/documentation...#sensor-not-required util.js:224:33

In the other pages the console outputs:
JQMIGRATE: Migrate is installed, version 3.0.0
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose