Comments (1)
@thangbv cái này có thể theo quá trình này anh:
Phương án 1
- Dùng GeoLocation để lấy tọa độ kinh độ, vĩ độ của người dùng
- Từ tọa độ đó gọi qua 1 API khác như Google Map API (không cung cấp API này cho Việt Nam) hoặc OpenCage (miễn phí hoặc có phí) để lấy ra địa điểm
Phương án này chính xác hơn nhưng cũng có khi khá tào lao, sai lệch cả trăm km và nó cần người dùng cấp quyền. Khi phương án 1 thất bại có thể dùng phương án 2.
Phương án 2
Từ IP của người dùng tra ra location cái này ít chính xác hơn.
Có thể kết hợp cả 2 phương án để đánh giá.
from nukeviet.
Related Issues (20)
- Bổ sung full header cho XML RSS và module banners HOT 1
- Bổ sung phần quản lý header Feature-Policy HOT 1
- Bổ sung ghi log ở khu vực nhân viên hỗ trợ
- Lỗi editors HOT 4
- Tối ưu SEO trang xem chi tiết bài viết tin tức
- [4.6] Lỗi khi thêm quản trị module
- Cải tiến email thông báo khi đổi mật khẩu ngoài site
- Chức năng tự động sao lưu dữ liệu: Cần đổi tên file nén
- embed social mạng xã hội twitter và instagram HOT 1
- Thêm cấu hình kiểm tra phiên bản email
- api_request chưa hoàn thiện
- Bổ sung thêm cấu hình "Thời gian kiểm tra xác thực API"
- Module Contact (Admin): Lỗi khi chọn mục Nhân viên hỗ trợ
- Góp ý: NukeViet 4.5.05 bản tiếng Anh
- Lỗi không xem được nhật ký hệ thống HOT 7
- Lỗi đăng sản phẩm trong Nukeviet Version 4.4 HOT 3
- Sai logic dẫn tới xoá hết thông báo khi cronjob đến chu kỳ do điều kiện truy vấn hiện tại luôn luôn đúng
- Bổ sung trường số phone cho moduel users HOT 1
- Báo lỗi PDOException trên Mariadb10.5 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nukeviet.