jrGeo_location usage

blindmime
@blindmime
10 years ago
772 posts
I have jrGeo_location template code in my index.tpl template:
{jrGeo_location template="DMA Code %dma_code%"}
{jrGeo_location template="Metro Code %metro_code%"}
{jrGeo_location template="Area Code %area_code%"}
{jrGeo_location template="Longitude %longitude%"}
{jrGeo_location template="Latitude %latitude%"}
{jrGeo_location template="City %city%"}
{jrGeo_location template="Postal Code %postal_code%"}
{jrGeo_location template="Region %region%"}
{jrGeo_location template="Country Name %country_name%"}
{jrGeo_location template="Country Code %country_code%"}
{jrGeo_location template="Country Code 3 %country_code3%"}
Which displays this:
DMA Code 0
Metro Code 0
Area Code 0
Longitude -97
Latitude 38
City
Postal Code
Region
Country Name United States
Country Code US
Country Code 3 USA

I've upload the city .dat file via the module's tools tab. Am I missing anything?

Eventually I want to be able to show profiles to users based on the user's location. If they're within a certain distance based on the profile's zip code would be great.
updated by @blindmime: 08/06/15 03:56:11PM
blindmime
@blindmime
10 years ago
772 posts
In the office I'm getting:

DMA Code 512
Metro Code 512
Area Code 410
Longitude -76.4394
Latitude 39.3343
City Middle River
Postal Code 21220
Region MD
Country Name United States
Country Code US
Country Code 3 USA

So I guess it's set up, but these don't reflect where I'm actually at. I'm guessing I need to do something else to make this useful?
michael
@michael
10 years ago
7,806 posts
That looks pretty spccific:
"City Middle River, MD, United States 21220"

I suspect if you need more specific info you're going to need a more specific database than the free one provided.

I think the free one from http://www.maxmind.com that is included is only down to the city level.
blindmime
@blindmime
10 years ago
772 posts
As I said, " these don't reflect where I'm actually at."

The information is wrong so it's useless. It's not even close. I'm in Utah. When I'm viewing from home it just sticks me in the middle of the U.S. This data above is when I'm at the office. Assuming I don't need to configure anything else, it doesn't appear to offer a reliable method to display relevant distance-related profiles to a user based on ip.

However, if I can feed a street address from profile information, compiling longitude/latitude and deriving a distance between two points, I could then display profiles within a certain circle of distance.

The doc examples show seeding ip's but since that seems unreliable, can we seed something else?
updated by @blindmime: 07/04/15 05:05:21AM
michael
@michael
10 years ago
7,806 posts
As I said: "you need more specific info"

The database is a free one. Might want to contact maxmind.com and see if they have a location database that can do what your after.
blindmime
@blindmime
10 years ago
772 posts
Ha -- I think I'm after getting accurate results, which is presumably what anyone using this module is after.

This service appears to be accurate:

http://www.ipaddresslabs.com/IP-GeoLoc-ip-address-geolocation-locator-lookup-database-software-geography-country-region-state-county-province-city-postal-zip-code-metro-area-code-latitude-longitude@IP-GeoLoc
updated by @blindmime: 07/05/15 06:01:23AM
michael
@michael
10 years ago
7,806 posts
The basic edition of that manages to tell me im in Tokyo. very un-specific. The professional version does a little better, but still gets it wrong by about 2 changes of train and 40 minutes to get to where I'm supposed to be.


And that service isn't free.
http://www.ipaddresslabs.com/IP-GeoLoc-ip-address-geolocation-locator-lookup-database-software-geography-country-region-state-county-province-city-postal-zip-code-metro-area-code-latitude-longitude@IP-GeoLoc#EditionsPlansAndPricing

Did maxmind.com come back with a price for there more specific data.

In the end these companies are selling data as a service, so your unlikely to get very specific information for no price.
blindmime
@blindmime
10 years ago
772 posts
Yeah, the service is $15/mo. Sometime in the future I'm going to need something that is accurate by 2 train changes.

What would be useful is if jrGeo_location could display the distance between two zip codes. But I'd need accurate data for that as well, of course.
updated by @blindmime: 07/07/15 06:57:09AM

Tags