Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.
Buying anything on Amazon? Please use the Geekzone Amazon aff link.




243 posts

Master Geek
+1 received by user: 3


Topic # 139061 26-Jan-2014 17:35 Send private message

Hi there.

I am using the following syntax to display on my site for MY location, but I want it to display based where the device is - basically by IP address.

<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.co.nz/?ie=UTF8&amp;ll=-45.872561,170.527382&amp;spn=0.166372,0.363579&amp;t=m&amp;z=12&amp;output=embed"></iframe><br /><small><a href="https://maps.google.co.nz/?ie=UTF8&amp;ll=-45.872561,170.527382&amp;spn=0.166372,0.363579&amp;t=m&amp;z=12&amp;source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small>


Any help please as to how I change this - I get I need to replace the defined location with a variable just not sure of syntax.

Thanks!

Mark







Mark Ascroft
haarc limited
dunedin

Create new topic
Webhead
885 posts

Ultimate Geek
+1 received by user: 156

Trusted
Subscriber

  Reply # 975177 27-Jan-2014 15:37 Send private message

Looks like you can get a lot of what you need by a simple Google search https://www.google.co.nz/search?q=google+map+with+user+location+based+on+ip&oq=google+map+with+user+location+based+on+ip&aqs=chrome..69i57j0l3j69i64.9222j0j7&sourceid=chrome&espv=210&es_sm=91&ie=UTF-8

As mentioned, don't expect to get very detailed data. And for users such as me (On Snap) you will see me as located in Christchurch even though I am in Napier...




1874 posts

Uber Geek
+1 received by user: 254


  Reply # 975180 27-Jan-2014 15:43 Send private message

jarledb: 
As mentioned, don't expect to get very detailed data. And for users such as me (On Snap) you will see me as located in Christchurch even though I am in Napier...


With snap's IPs it seems to be pretty much luck of the draw on whether you get one registered in Christchurch, Wellington or Auckland. It'll be pretty hit and miss with a lot of users, not just on snap.

Create new topic




Twitter »
Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





Trending now »

Hot discussions in our forums right now:

Crew Drinking on Flights - Why!?
Created by networkn, last reply by Dratsab on 21-Dec-2014 22:04 (27 replies)
Pages... 2


Police Camera Van Disguise
Created by Reanalyse, last reply by lNomNoml on 21-Dec-2014 23:33 (75 replies)
Pages... 3 4 5


Do I have the right to return this?
Created by corksta, last reply by kiwibro111 on 21-Dec-2014 23:54 (45 replies)
Pages... 2 3


Slaughter of Innocents
Created by networkn, last reply by networkn on 19-Dec-2014 17:46 (64 replies)
Pages... 3 4 5


Spray Foam Insulation
Created by AACTech, last reply by timbosan on 19-Dec-2014 16:58 (36 replies)
Pages... 2 3


Couriers starting to charge for redelivery
Created by mattwnz, last reply by rendezvous on 19-Dec-2014 11:45 (78 replies)
Pages... 4 5 6


Google Chromecast now available in New Zealand
Created by freitasm, last reply by michelangelonz on 20-Dec-2014 10:38 (155 replies)
Pages... 9 10 11


forgot how to unlock a car door
Created by joker97, last reply by joker97 on 21-Dec-2014 07:34 (53 replies)
Pages... 2 3 4



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.