Re: [OSM-talk] Proximity

2018-09-29 Thread Oleksiy Muzalyev

On 29.09.18 00:46, Frederik Ramm wrote:

Hi,

On 28.09.2018 23:21, john whelan wrote:

Many cities have had their bus stops imported.

And even more cities have their bus stops mapped in the traditional
fashion, like, riding a bus and recording where it stops. It's amazing
how much you can do with one day pass :)


what else is needed to work it out?

[...]

2. The existence of a bus stop in OSM does not mean it is actually
served by a route; and the existence of a route in OSM that serves the
bus stop does not necessarily say what frequency - it could be the
school bus that only goes three times a day, or the night bus, or the
bus extension to the pool that only goes in summer.

Bye
Frederik

On this website one can see on the OSM map not only the locations of 
stops, but the positions of the public transportation vehicles 
themselves in real time. Here are the positions of the tram (light 
train) #28 in the city of Odessa: 
https://www.eway.in.ua/ru/cities/odesa/routes/1


It is very convenient as one does not have to wait at the stop but can 
leave home or office just in time to get on the tram. So no need to have 
too many vehicles on the route as one can comfortably plan the trip even 
if there are not many.


I think such dynamic real-time mapping is the future of public 
transportation and cartography in general, though I am not sure how it 
is implemented on this particular website. I assume they use GPS 
sensors. But how they transmit locations to the map's server constantly 
I am not sure.


Best regards,

Oleksiy


___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Proximity

2018-09-29 Thread Pierre Béland
Solutions depend how big is your data.  Overpass count function might be the 
solution if just a one shot calculation.  You would have a query for each type.

If you want to use the power of SQL databases, Sqlite is a «light solution», 
coupled with the DBeaver database tool.https://dbeaver.io/
I used to parse OSM xml with a Python script, but PostgreSQL + PosGIS offers 
more long term development options like for the Quality analysis I did on 
Building geometries 
(https://opendatalabrdc.github.io/Blog/index.html#!Database_Quality_Analysis_Tasking_Manager.md).
  Osmosis (Osm2Pgsql schema) takes care to import OSM/Xml directly in a PostGIS 
database. From there, quite easy to count, filter, analyze data.
 
Pierre 
 

Le samedi 29 septembre 2018 20 h 02 min 10 s HAE, john whelan 
 a écrit :  
 
 Thank you kind sir.  I've got sidetracked into trying to count types of 
buildings.
I used to use VB not for its power but for its development interface.  So much 
easier than using assembler which I started with many years ago.
Apparently I need a datatable to sort a couple of columns, fine but all the 
documentation is for C#.  It still has the nice development interface but there 
are differences.
I know exactly what I want to do but finding the correct syntax makes me feel 
if you know Perl and it can do the job stay with it.
Thanks John
On Sat, 29 Sep 2018, 6:26 pm Frederik Ramm,  wrote:

Hi,

On 29.09.2018 01:59, john whelan wrote:
> I thank Fredrick for his comments as well.  If a more refined solution
> is required then there is enough information given to make a start coding.

I know Perl isn't what people use these days but just to show that it
really isn't rocket science (and doesn't require elaborate routing
engines for that scale) I've made a modified version of the Perl script
and checked it into the SVN directory. That script will take a .osm data
file as input and generate a schematic map like

http://www.remote.org/frederik/tmp/ipswich-busstops.png

(which depicts Ipswich), where nodes are coloured according to their
distance from the nearest bus stop (in this picture, 500 Mercator metres
or more means something gets red).

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frede...@remote.org  ##  N49°00'09" E008°23'33"


___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk

___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk
  ___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Proximity

2018-09-29 Thread john whelan
Thank you kind sir.  I've got sidetracked into trying to count types of
buildings.

I used to use VB not for its power but for its development interface.  So
much easier than using assembler which I started with many years ago.

Apparently I need a datatable to sort a couple of columns, fine but all the
documentation is for C#.  It still has the nice development interface but
there are differences.

I know exactly what I want to do but finding the correct syntax makes me
feel if you know Perl and it can do the job stay with it.

Thanks John

On Sat, 29 Sep 2018, 6:26 pm Frederik Ramm,  wrote:

> Hi,
>
> On 29.09.2018 01:59, john whelan wrote:
> > I thank Fredrick for his comments as well.  If a more refined solution
> > is required then there is enough information given to make a start
> coding.
>
> I know Perl isn't what people use these days but just to show that it
> really isn't rocket science (and doesn't require elaborate routing
> engines for that scale) I've made a modified version of the Perl script
> and checked it into the SVN directory. That script will take a .osm data
> file as input and generate a schematic map like
>
> http://www.remote.org/frederik/tmp/ipswich-busstops.png
>
> (which depicts Ipswich), where nodes are coloured according to their
> distance from the nearest bus stop (in this picture, 500 Mercator metres
> or more means something gets red).
>
> Bye
> Frederik
>
> --
> Frederik Ramm  ##  eMail frede...@remote.org  ##  N49°00'09" E008°23'33"
>
>
> ___
> talk mailing list
> talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/talk
>
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


[OSM-talk] Proximity

2018-09-29 Thread Frederik Ramm
Hi,

On 29.09.2018 01:59, john whelan wrote:
> I thank Fredrick for his comments as well.  If a more refined solution
> is required then there is enough information given to make a start coding.

I know Perl isn't what people use these days but just to show that it
really isn't rocket science (and doesn't require elaborate routing
engines for that scale) I've made a modified version of the Perl script
and checked it into the SVN directory. That script will take a .osm data
file as input and generate a schematic map like

http://www.remote.org/frederik/tmp/ipswich-busstops.png

(which depicts Ipswich), where nodes are coloured according to their
distance from the nearest bus stop (in this picture, 500 Mercator metres
or more means something gets red).

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frede...@remote.org  ##  N49°00'09" E008°23'33"


___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


[OSM-talk] weeklyOSM #427 2018-09-18-2018-09-24

2018-09-29 Thread weeklyteam
The weekly round-up of OSM news, issue # 427,
is now available online in English, giving as always a summary of all things 
happening in the openstreetmap world:

http://www.weeklyosm.eu/en/archives/10754/

Enjoy!

weeklyOSM? 
who: https://wiki.openstreetmap.org/wiki/WeeklyOSM#Available_Languages 
where?: 
https://umap.openstreetmap.fr/en/map/weeklyosm-is-currently-produced-in_56718#2/8.6/108.3
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk