Q&A

How to fix location in line bot chat

I am developing line bot that share location to bot. When a user tap quick reply that named "Location", the map appears to choose location. Then the user can tap on the map to send location to bot. Now the user can slide the map to any location and send to bot. But what I want is, to fix/lock the map which cannot be slided and let the user tap their current location to the bot. IS IT possible to fix or lock the map? The reason for that is, wanting the real location of the user. Thanks in advance Ookam

  • 0
  • 1
  • 177
  • twitter facebook

Right now, You can’t fix the location in the Location Picker. My workaround is using the LIFF to get the location via HTML Geolocation API instead of using the Location Action.

https://www.w3schools.com/html/html5_geolocation.asp

  • 2
本当によろしいですか? question.vm