Jump to content

Geolocation on user login via Smartphone GPS or IP in IPS 4.0


sobrenome

Recommended Posts

IPS 4.0 will have responsive layout and will be smartphone friendly.

I think that a built in geolocation feature (GPS and IP) would be awesome as a search filter to find nearby community members (with other same interests filter on) or to find nearby products and services offered by the community.

I run a fitness website and would be amazing to provide to the community member, for example, a list of nutritionists that are nearby or a list of members nearby that are looking for a training partner.

Imagine the possibilities to the community exploring GPS geolocation on smartphones. Many cool things can be made with IP.Content, IP.Board, IP.Calendar and IP.Nexus using geolocation.

I suggest that in the user table a field related to geolocation should be created and updated on every login with the member coordinates, and obvious, respecting the member's privacy choice.

Link to comment
Share on other sites

  • 2 weeks later...

I was thinking in an app for my website specially designed to use GPS functionality to explore the community data.

But as long as the new IPS 4.0 is going to have a responsive layout, the geolocation services can be offered without an app and with much more options.

I guess the most important thing in the new IPS 4.0 is to let users provide their GPS geolocation on each log in and make the geolocation data available in the system for the developers to explore this data the best way that can be imagined for each community.

Thanks!!! It will be an awesome feature that will put IPS ahead the competition!

Link to comment
Share on other sites

  • 10 months later...

If you're a developer, you can also use the GPS of mobile devices quite easily (we actually use this in IP.Nexus to make the address input field autocomplete, you usually only need to enter your house number and it knows the rest), though I wouldn't recommend it for things like location-based advertising.

With GPS location, it requires both the user to have GPS-compatible hardware, and them to specifically allow access. While that's fine for specific cases, most users aren't going to allow access to their precise location unless they know what you want it for. And for things like location-based advertising, getting it based on their IP is specific enough (I assume you're going to do ads based on their country, or maybe state, but you're not going to show different ads to different streets, presumably tongue.png).

The methods available are:

/* IP address */
IPSGeoLocation::getByIp( $ipAddress );

/* Latitude and longitude (such as returned by the GPS) */
IPSGeoLocation::getByLatLong( $latitude, $longitude );

/* Manually */
$geolocation = new IPSGeoLocation;
$geolocation->addressLines = array( '123 Fake St.' );
$geolocation->city = 'City';
$geolocation->country = 'US';

So, if you wanted it, it's there. You'd just need to write the JS to ask the user for permission and post the values (which is just a couple lines of JS).

Link to comment
Share on other sites

  • 9 months later...
  • 5 years later...
On 8/19/2014 at 6:23 AM, Mark said:

The methods available are:


/* IP address */
IPSGeoLocation::getByIp( $ipAddress );

/* Latitude and longitude (such as returned by the GPS) */
IPSGeoLocation::getByLatLong( $latitude, $longitude );

/* Manually */
$geolocation = new IPSGeoLocation;
$geolocation->addressLines = array( '123 Fake St.' );
$geolocation->city = 'City';
$geolocation->country = 'US';

Are these methods available on 4.5? Any DEV docs about them?

Link to comment
Share on other sites

1 hour ago, bfarber said:

The methods are still available in 4.5 yes.

Awesome! How can I retrieve latitude and longitude?

{{$geoData = \IPS\GeoLocation::getByIp( 'my IP' );}}
{$geoData['lat']}
{$geoData['long']}

Tried $geoData['lat'] and $geoData['long'] but there was no data.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...