Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show the location of the user, as in facebook?

Tags:

html

php

tracker

I have searched in many places but I couldn't find the answer for this.

The thing is I want to display the users current location in the Web page just as a text without using Maps and pointing to that.

Many places I saw used Maps for implementation, is there any way ?

Thanks in advance :)

like image 565
Arunkumar Srisailapathi Avatar asked Dec 20 '12 11:12

Arunkumar Srisailapathi


2 Answers

You can use HTML5 Geolocation feature: http://html5demos.com/geo

like image 115
MarcinJuraszek Avatar answered Nov 19 '22 02:11

MarcinJuraszek


try the google maps api (v3) geocoding stuff: https://developers.google.com/maps/documentation/javascript/geocoding#GeocodingAddressTypes

there would be a possibility to simple write down the current location (as street or city)

like image 1
EnrageDev Avatar answered Nov 19 '22 02:11

EnrageDev