Re: [OSM-dev] openstreetmap could start at user's approximate location using geo-ip

2009-01-21 Thread Stefan Ziegler
 Original-Nachricht 
 Von: Thomas Wood grand.edgemas...@gmail.com

 2009/1/20 Stefan Ziegler stefan.ziegler_...@gmx.de:
  My Project osm3d  (on Sourceforge) (www.osm3d.org) is  an interactive
 vector renderer.
  But it works outside of a browser.
  The problem, each renderer have (especially for the interactive ones):
  the huge mass of vector data, you have to sort (location) and draw.
 
  Inside a browser, you may use java3d.
  For example, for Germany, you have Gigabytes of (uncompressed) vector
 data.
  If you want to get the vector data interactively in small parts, OSM
 would need much more server power.
 
  There are many other renderers, most of them in 2d. Osmarenderer and
 Mapnik are typical vector renderer, but not interactive.
 
 Use regional extracts of the database, then.
 http://wiki.openstreetmap.org/wiki/Planet.osm#Extracts

I'm using regional extracts. But to switch from one country in Germany to 
another, I have to restart the program. (Or throw everything out of the memory 
and load the new file).

 
 -- 
 Regards,
 Thomas Wood
 (Edgemaster)

Stefan Ziegler.
-- 
Diplom-Informatiker,
Homepage: http://www.stefanziegler-online.de/
Wir alle wissen mehr als das, wovon wir wissen, dass wir es wissen. (Thornton 
Wilder)

NUR NOCH BIS 31.01.! GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 EURO/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a

-- 
Diplom-Informatiker,
Homepage: http://www.stefanziegler-online.de/
Wir alle wissen mehr als das, wovon wir wissen, dass wir es wissen. (Thornton 
Wilder)

NUR NOCH BIS 31.01.! GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 EURO/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] openstreetmap could start at user's approximate location using geo-ip

2009-01-20 Thread Sam Watkins
On Tue, 20 Jan 2009 08:27 +, Tom Hughes t...@compton.nu wrote:
 Sam Watkins wrote:
  Geo::IP is a perl interface to the free available version of maxmind's
  geo-ip database. From the manpage:
 
 The only issue with that database is that I think we would have to find 
 space somewhere on the page for the acknowledgement that the license 
 requires, and space on our homepage is at something of a premium.

It definitely doesn't require that:

From the license:

All advertising materials and documentation mentioning features or use
of
this database must display the following acknowledgment:
This product includes GeoLite data created by MaxMind, available from
http://maxmind.com/;

The homepage is neither advertising material or documentation, and
there's no requirement to mention the use of geo-ip system at all.
If you do mention the use or features of geo-ip in documentation, we can
include that acknowledgement. It's obviously not a core feature of osm
so no need to mention it except possibly in the most detailed
documentation. They're not trying to get on anyone's home page!

regards,

Sam

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] openstreetmap could start at user's approximate location using geo-ip

2009-01-20 Thread Stefan Ziegler
 Date: Tue, 20 Jan 2009 11:52:00 +0800
 From: Sam Watkins swatk...@fastmail.fm
 Subject: Re: [OSM-dev] openstreetmap could start at user's approximate
   location using geo-ip
 To: open street map dev@openstreetmap.org
 Message-ID: 1232423520.23604.1295688...@webmail.messagingengine.com
 Content-Type: text/plain; charset=us-ascii
 
 On Sun, Jan 18, 2009 at 03:34:14PM +, Tom Hughes wrote:
  It uses the cookie first, then your home location (assuming you're 
  logged in), then GeoIP via hostip.info, and finally defaults to Europe.
  Take a look at www.hostip.info if you want to see where it thinks you 
  are.
 
 hi Tom, everyone
 
 (I accidentally posted this to Tom off list yesterday.)
 
 hostip.info says I am located in 500 Internal Server Error!
 
 I don't like this present technique because it's slow, and it's not
 working for me and several others on the list. Geo::IPFree exists and
 unlike hostip.info works correctly for me. I propose we change the
 system to use such a local free IP-country database. I can also provide
 a country border database we could center it on the center of the
 rectangular bounding box.  Not sure 
 
 I can have a go at making this change if that's agreeable.
 
 I was working a while ago on a project with the same idea as
 openstreetmap.org - but I didn't get very far with it.  I did write code
 that can animate flying around or zooming in on the planet, it included
 country borders and cities only.  I would like to change that program so
 it can use the openstreetmap data, that would be fun.
 
 My program also includes a method of dividing the earth's surface into a
 hierarchy of approximately equal-sized rectangular regions (so it
 wouldn't have lots of very skinny regions near the poles).  I'm not sure
 what method openstreetmap uses for this.
 
 One other thing I would like to see is rotation of the map (my program
 can do that), this is fun and potentially useful, but it would need a
 vector based renderer.  Is there a browser-compatible vector-based
 renderer, or is anyone working on that?  I suppose that would give
 vastly better performance than the tiled image system.

My Project osm3d  (on Sourceforge) (www.osm3d.org) is  an interactive vector 
renderer.
But it works outside of a browser.  
The problem, each renderer have (especially for the interactive ones):
the huge mass of vector data, you have to sort (location) and draw.

Inside a browser, you may use java3d.
For example, for Germany, you have Gigabytes of (uncompressed) vector data.  
If you want to get the vector data interactively in small parts, OSM would need 
much more server power.

There are many other renderers, most of them in 2d. Osmarenderer and Mapnik are 
typical vector renderer, but not interactive. 

 It would also obviously be really cool to make something like Neil
 Stephenson's the street a 3d environment with avatars, but based on
 the real world map!  maybe could call it virtual tourist, could walk
 around in the world and meet people who are online and live in that
 place.  Open street map together with geographical data and the public
 wiki model make that very possible to achieve.  I don't know if this is
 a goal for openstreetmap already.

You think of Second Life? :-) I think, you are not the only one, who had this 
idea.
To realise it, you need many programmers and server power.
It is really very complex. Second Life have many servers and a maximum number 
of people for a distinct location.
 
 I tried zooming the map way out it's funny how it says more open
 streep map coming soon in the area above the north and south poles!!!
 
 Sam

Bye, Stefan.


-- 
Diplom-Informatiker,
Homepage: http://www.stefanziegler-online.de/


Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] openstreetmap could start at user's approximate location using geo-ip

2009-01-18 Thread Tom Hughes
Sam Watkins wrote:

 I had an idea just a small thing, that when you first go to the
 openstreetmap.org site it would be nice if it would check your IP
 address using some geo-ip system and go to that location (zoomed out at
 world height) for a start, instead of always starting near england /
 europe.  Has this been proposed before?  I'd be happy to help implement
 that I guess it would be an easy thing to do.

Like it's been doing for the last few years you mean...

Note that it only does it if you don't have a position cookie from a 
previous visit - if you do have a position cookie then it uses that.

Tom

-- 
Tom Hughes (t...@compton.nu)
http://www.compton.nu/

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] openstreetmap could start at user's approximate location using geo-ip

2009-01-18 Thread Shaun McDonald

On 18 Jan 2009, at 08:53, Tom Hughes wrote:

 Sam Watkins wrote:

 I had an idea just a small thing, that when you first go to the
 openstreetmap.org site it would be nice if it would check your IP
 address using some geo-ip system and go to that location (zoomed  
 out at
 world height) for a start, instead of always starting near england /
 europe.  Has this been proposed before?  I'd be happy to help  
 implement
 that I guess it would be an easy thing to do.

 Like it's been doing for the last few years you mean...

I'll just add that it does it on a country level, rather than city or  
state level.

I have tested it when abroad in Europe, and it does place me in the  
appropriate country.

Shaun


___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] openstreetmap could start at user's approximate location using geo-ip

2009-01-18 Thread Hugh Barnes
On Sun, 18 Jan 2009 10:43:46 +
Shaun McDonald sh...@shaunmcdonald.me.uk wrote:

 
 On 18 Jan 2009, at 08:53, Tom Hughes wrote:
 
  Sam Watkins wrote:
 
  I had an idea just a small thing, that when you first go to the
  openstreetmap.org site it would be nice if it would check your IP
  address using some geo-ip system and go to that location (zoomed  
  out at
  world height) for a start, instead of always starting near
  england / europe.  Has this been proposed before?  I'd be happy to
  help implement
  that I guess it would be an easy thing to do.
 
  Like it's been doing for the last few years you mean...
 
 I'll just add that it does it on a country level, rather than city
 or state level.
 
 I have tested it when abroad in Europe, and it does place me in the  
 appropriate country.
 

FWIW it doesn't seem to ever work for me in at least a couple of
environments I've tried. Either it drops me at my last viewport or I'm
back in good ol' Blighty needing to claw my way back. I actually
assumed that it was determined by my login status rather than cookie.

In either case, whatever geolocation service is being used doesn't seem
to cover a lot of providers here in Australia. I know they're not
perfect. However, I've played with Maxmind in the past and it gets the
country right. I think it's a pay service, though.

Just hoping that helps. Its a good feature when it works.

Cheers

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] openstreetmap could start at user's approximate location using geo-ip

2009-01-18 Thread Nigel Magnay
http://www.maxmind.com/app/locate_my_ip got me pretty much exactly..

On Sun, Jan 18, 2009 at 12:26 PM, Tom Hughes t...@compton.nu wrote:

 Shaun McDonald wrote:

  I'll just add that it does it on a country level, rather than city or
  state level.

 Indeed - the free GeoIP databases aren't really good enough to do much
 more than that. I'm not even sure the commercial ones are really, though
 they will probably claim otherwise.

 Tom

 --
 Tom Hughes (t...@compton.nu)
 http://www.compton.nu/

 ___
 dev mailing list
 dev@openstreetmap.org
 http://lists.openstreetmap.org/listinfo/dev

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] openstreetmap could start at user's approximate location using geo-ip

2009-01-18 Thread Tom Hughes
Hugh Barnes wrote:

 FWIW it doesn't seem to ever work for me in at least a couple of
 environments I've tried. Either it drops me at my last viewport or I'm
 back in good ol' Blighty needing to claw my way back. I actually
 assumed that it was determined by my login status rather than cookie.

It uses the cookie first, then your home location (assuming you're 
logged in), then GeoIP via hostip.info, and finally defaults to Europe.

 In either case, whatever geolocation service is being used doesn't seem
 to cover a lot of providers here in Australia. I know they're not
 perfect. However, I've played with Maxmind in the past and it gets the
 country right. I think it's a pay service, though.

Take a look at www.hostip.info if you want to see where it thinks you are.

Tom

-- 
Tom Hughes (t...@compton.nu)
http://www.compton.nu/

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] openstreetmap could start at user's approximate location using geo-ip

2009-01-18 Thread Sascha Silbe

On Sun, Jan 18, 2009 at 03:34:14PM +, Tom Hughes wrote:

It uses the cookie first, then your home location (assuming you're 
logged in), then GeoIP via hostip.info, and finally defaults to 
Europe.
Take a look at www.hostip.info if you want to see where it thinks you 
are.
hostip.info locates me at Stuttgart, Germany, but OSM shows Europe 
centered on UK. Cookies, cache and proxy disabled for testing.


CU Sascha

--
http://sascha.silbe.org/
http://www.infra-silbe.de/


signature.asc
Description: Digital signature
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] openstreetmap could start at user's approximate location using geo-ip

2009-01-18 Thread Jeremy Adams
hostip.info shows my IP in the US (VZ DSL), but OSM has always centered me on 
the UK.

It would be a neat feature if this worked.

-Jeremy

Original Message ---

--z4+8/lEcDcG5Ke9S
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Jan 18, 2009 at 03:34:14PM +, Tom Hughes wrote:

 It uses the cookie first, then your home location (assuming you're=20
 logged in), then GeoIP via hostip.info, and finally defaults to=20
 Europe.
 Take a look at www.hostip.info if you want to see where it thinks you=20
 are.
hostip.info locates me at Stuttgart, Germany, but OSM shows Europe=20
centered on UK. Cookies, cache and proxy disabled for testing.

CU Sascha

--=20
http://sascha.silbe.org/
http://www.infra-silbe.de/

--z4+8/lEcDcG5Ke9S
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Digital signature
Content-Disposition: inline

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBSXNh1bpz82VMF3DaAQLA1Af/W621/P/b4FFX9cRQQAi9bIwjasrY5/7J
tMIW1qEInLZ0E1F5Z7ewELcogkZLCKPYPbmRSt/oroMR35AhzATrouyi62POUh23
dl+JstVR8r91D8JLg01+FwKJVCnqyOwKjr4rw8hkQlXWSs4zfE/zA4Ull7cCBRHf
kpxfey7Viv+CSzezs3fbZrxwdRE6QqF5uZJIjIWScJxrlLWUqdWXAgMObYVgf7Iu
MImKqBSFP1qpCSm6NMeGNv6wjerdeogZZP4+1ASNDG6iBJ2tInH18/vVUgP1LA5F
RVqjm8OvGOpq0CdxPGx9MHB4C/Q1vLZBvGLcq/JwItQhvU9b8aUI1A==
=MEe7
-END PGP SIGNATURE-

--z4+8/lEcDcG5Ke9S--


___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] openstreetmap could start at user's approximate location using geo-ip

2009-01-18 Thread Tom Hughes
Sascha Silbe wrote:
 On Sun, Jan 18, 2009 at 03:34:14PM +, Tom Hughes wrote:
 
 It uses the cookie first, then your home location (assuming you're 
 logged in), then GeoIP via hostip.info, and finally defaults to Europe.
 Take a look at www.hostip.info if you want to see where it thinks you 
 are.
 hostip.info locates me at Stuttgart, Germany, but OSM shows Europe 
 centered on UK. Cookies, cache and proxy disabled for testing.

Looks like geonames is being very slow at the moment, so we are probably 
timing out and giving up.

Basically the GeoLocation we do is a two step process. First we query 
hostip like this:

   http://api.hostip.info/country.php?ip=ip-addresss

then we feed the country code we get from that to geonames:

   http://ws.geonames.org/countryInfo?country=country-code

to get a bounding box for the country which we zoom the map to.

If either query gives no result, or the whole thing takes more than four 
seconds, then we give up and use the default.

Tom

-- 
Tom Hughes (t...@compton.nu)
http://www.compton.nu/

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


[OSM-dev] openstreetmap could start at user's approximate location using geo-ip

2009-01-17 Thread Sam Watkins
hi,

I had an idea just a small thing, that when you first go to the
openstreetmap.org site it would be nice if it would check your IP
address using some geo-ip system and go to that location (zoomed out at
world height) for a start, instead of always starting near england /
europe.  Has this been proposed before?  I'd be happy to help implement
that I guess it would be an easy thing to do.

Thanks to all who contribute to this amazing project!

Sam

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev