微信获取得地理位置保存到哪里好? 微信关注成功,用户允许选择地理位置之后,获得的经纬度保存到哪里好呢??session还是数据库呢。 我是想用保存得经纬度调用百度地图API查询【本文来自鸿网互联 (http://www.68idc.cn)】周边宾馆。。。地理位置是用户自己选
微信获取得地理位置保存到哪里好?
微信关注成功,用户允许选择地理位置之后,获得的经纬度保存到哪里好呢??session还是数据库呢。
我是想用保存得经纬度调用百度地图API查询【本文来自鸿网互联 (http://www.68idc.cn)】周边宾馆。。。地理位置是用户自己选择的,不固定。请大家给给意见!谢谢~~~
------解决思路----------------------
数据库,用户微信标识和地理位置作为数据库字段。
------解决思路----------------------
既然是用户选择的地理位置,还是放在数据库里吧,session总会失效的,保存在数据库里保险点,。
------解决思路----------------------
session是有有效期的,临时使用存储session即可。以后也要用就存数据库。
另外提醒你腾讯和百度的地图不是同一个标准, 你需要将其转为百度经纬度在使用

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

WebStorm Mac version
Useful JavaScript development tools

Atom editor mac version download
The most popular open source editor

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software