Golo Roden
Golo Roden

Reputation: 150902

How to get the GPS data of a MacBook Pro using Node.js?

AFAIK every MacBook Pro has a GPS chip built-in, which e.g. can be used by Chrome to locate the user.

How can I access the user's position using Node.js?

Upvotes: 0

Views: 210

Answers (1)

neuhaus
neuhaus

Reputation: 4104

The Macbook Pro has no builtin GPS but you can use its IP adress to try to determine its location.

There's a NodeJS API for MaxMind at https://github.com/bluesmoon/node-geoip

Upvotes: 1

Related Questions