'How can I force chrome to get the geolocation from GPS module connected to a USB port instead of getting it from router IP?

I'm working on a certain project that uses RasberryPi debian 7 google chrome to open get some work done, the thing is, the server (I made it with django) asks the rasberry pi about its location.

RasberryPi's google chrome gets the location from the wifi IP location service. How can I change it to get the location from a GPS module I connected to RasberryPi USB port?

I configured the GPS module and it's ready the location well and everythin works fine, now I only need to force chrome to get its location from that GPS module.



Solution 1:[1]

I do not have RasberryPi but this way works in Android: Start a native GPS app alongside Chrome, and Chrome will use the GPS positions that have already been produced for the native app.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Adam Gawne-Cain