N
N
Nubbb2021-02-02 10:13:53
Laravel
Nubbb, 2021-02-02 10:13:53

How to detect user geolocation and Nuxt.js + Laravel data output?

Tell me, there is a frontend on Nuxtjs and a backend on Laravel

It seems that I came to use the google maps api (but I'm not sure)

How to determine the user's city before loading the site

You will need to display the name of the city in the header and, before loading, write, for example, geolocation data to localStorage (or cache) and display data on the site (have time to send to api Laravel) for this city

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Sklyarov, 2021-02-02
@0example

Detect location and local timezone of users in Jav...
Detect User's Location Like A Pro Using Vue.js
and a dozen more articles that you can find on Google.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question