DMXzone Google Maps 2 Support Product Page

Answered

Geographic location of the Visitors IP address into the DMXzone Googlemaps2

Asked 26 Jan 2015 14:21:32
1
has this question
26 Jan 2015 14:21:32 Gary Moreton posted:
I am currently building a site that tracks the visitors by their ip address and the Geographic long / lat coordinates; i would then like to add the he Geographic location of the Visitors IP address into the DMXzone Googlemaps2 map displayed on the page. Is there anyway I can get the Googlemaps2 Longitude / Latitude variable to use the variable I have collected from the Visitors IP Address information ?

Any feedback would be appreciated?
G R Moreton

Replies

Replied 26 Jan 2015 14:42:32
26 Jan 2015 14:42:32 Teodor Kuduschiev replied:
Hello Gary,
Are you storing the Latitude and Longitude into a database?
Replied 26 Jan 2015 14:54:00
26 Jan 2015 14:54:00 Gary Moreton replied:
Good afternoon Teodor

Yes I am storing all the visitor details into a MYSQL Database; I know I could import the Long / Lat coordinates from the database into the Googlemaps2 , however I was not sure how to get the Long / Lat coordinates of the "realtime" IP address representing the current website visitors location?

I see there is a new extension called "GEO Location" Is this what I need to make this work?

Replied 26 Jan 2015 15:00:55
26 Jan 2015 15:00:55 Teodor Kuduschiev replied:
The realtime geolocation of an user can be displayed on google maps using the HTML5 Geo Location extension: www.dmxzone.com/go/22795/real-time-position-tracking-with-dmxzone-google-maps-2
however, the extension cannot show the IP address of the visitor.
Also - you can use the HTML5 Geo Location extension with the DMXzone Database Connectior and DMXzone Database Updater, which are ajax based - and you can show the latest N-visitors on the map (where N is a number set by you) from your database: www.dmxzone.com/demo/php/HTML5GeoLocation/LocationSharing/index.html like on this showcase.
Replied 26 Jan 2015 15:08:53
26 Jan 2015 15:08:53 Gary Moreton replied:
Thanks Teodor for the quick reply.

I know there are lots of API's offered to Websites that do what I am looking for however I was trying to use the DMXzone Googlemaps2 to also do this based on the IP Address which I have then reversed to discover the Geographic Location. I have all of the data which I have stored and so can show all the previous visitors but no "realtime" using the IP Address. Am I correcy in thinking that the HTML5 Geo Location extension uses the GPS Location of the Websites Visitors smart device?
Replied 26 Jan 2015 15:10:55
26 Jan 2015 15:10:55 Teodor Kuduschiev replied:
HTML5 Geo Location uses the location provided by the GPS sensor (if such) on the device of the user, otherwise it uses the location provided by the network.
Replied 26 Jan 2015 15:12:38
26 Jan 2015 15:12:38 Gary Moreton replied:
Just read what you said about (where N is a number set by you) from your database - So in theory I could tell Googlemaps2 to look at the very last entry in MYSQL, however saying that I guess it depend on how many Visitor hits I was receiving simultaneously?
Replied 26 Jan 2015 15:20:53
26 Jan 2015 15:20:53 Gary Moreton replied:
To Be Honest I think HTML5 Geo Location is what I am looking for, however the End User needs to agree to disclose their GPS Location. I will scratch my head and give this some thought for a little longer to see if I can figure out a way of importing the Realtime Lat / Long data for the person looking at the webpage at that time.

Again thanks for your help.
Best regards
Gary

Reply to this topic