Re: [OSM-dev] XAPI

2017-08-07 Thread Fredy Yanez
I tried both. 


It seems like I pasted the wrong line of code here. 


Sorry about that,


Fredy


 From:   Dave F  
 To:    
 Sent:   8/7/2017 4:53 PM 
 Subject:   Re: [OSM-dev] XAPI 


 
 
On 07/08/2017 17:08, Simon Poole wrote:

There are multiple reasons why this is not going to work,
 
 One of them is it's amenity=school not schools
   
   
   DaveF
 


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


Re: [OSM-dev] XAPI

2017-08-07 Thread Dave F


On 07/08/2017 17:08, Simon Poole wrote:


There are multiple reasons why this is not going to work,



One of them is it's amenity=school not schools


DaveF

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


Re: [OSM-dev] XAPI

2017-08-07 Thread Fredy Yanez

JSON would be great!


It would be nice to get all schools (k-12) and all the information that is 
available in regards to the school ( i.e name of school, lat & long, if 
possible country, state/providence etc).


Let me know if you need anymore information.


Thanks so much!!!


Fredy 









 From:   Simon Poole  
 To:   Fredy Yanez  
 Cc:    
 Sent:   8/7/2017 2:37 PM 
 Subject:   Re: [OSM-dev] XAPI 


 
I can probably do it for you, I need to know the file/data format   you 
would like and projection (I assume you want points and that   the output 
should be de-duplicated in some form). All tags? Or   just some specific 
one? 
Simon 
 
Am 07.08.2017 um 19:52 schrieb Fredy   Yanez:
  Thanks!    

  
I understand that i might not get 100% coverage. That is okay. Any data 
that I can get is useful.   

  
How would one go about contacting a friendly operator of a osm2pgsql 
server?    

  

  
Fredy
 

   
   
   From:  Simon Poole  
To:  
 
Sent:  8/7/2017 12:08 PM 
Subject:  Re: [OSM-dev] XAPI
 
 

 
There are multiple reasons why this is not going to   work, not 
the least that there have been no public   native XAPI servers 
available for a very long time. 
See http://wiki.openstreetmap.org/wiki/Xapi 
But in any case extracting anything for the whole   world from 
any API is not a good idea, I would suggest   downloading a 
planet dump and filtering the objects   out of it, or asking a 
friendly operator of a   osm2pgsql server with the whole planet 
imported to   generate a list of schools for you.   
  
The other thing to take in to account, that while we   
undoubtedly have a lot of schools in OSM and in some   areas 
will have 100% coverage this is definitely not   universal. 
  
Simon
  
 
Am 07.08.2017 um 17:43   schrieb Fredy Yanez:
  Good afternoon,    

  

  
I'm working for a no profit and our goal is to measure 
internet connectivity for every school in the world. It 
would be very beneficial is we had access to every school 
within the database. To do this I've been trying to use 
XAPI and I'm having a few errors.   

  

  
For example when I try to use XAPI URLs:   
 wget --timeout=0 
http://www.informationfreeway.org/api/0.6/node[amenity=schools] -O data.osm 
  
   
I get this link as a response:    

  
 
http://www.informationfreeway.org/noapi.html 


and in data.osm I get : 
/ 
 
  
No API 


 


I was wondering what I'm doing wrong?   
  
My guess is that I'm not authenticating or something 
along those lines. 


What is the best way to solve this problem ?
 


Thanks ! 
Fredy  
  
   ___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev
  
  
   
   ___
   dev mailing list
   dev@openstreetmap.org
   https://lists.openstreetmap.org/listinfo/dev
  
___
dev mailing list

Re: [OSM-dev] XAPI

2017-08-07 Thread Simon Poole
I can probably do it for you, I need to know the file/data format you
would like and projection (I assume you want points and that the output
should be de-duplicated in some form). All tags? Or just some specific one?

Simon


Am 07.08.2017 um 19:52 schrieb Fredy Yanez:
> Thanks! 
>
> I understand that i might not get 100% coverage. That is okay. Any
> data that I can get is useful.
>
> How would one go about contacting a friendly operator of a osm2pgsql
> server? 
>
>
> Fredy
>
>
> *From: * Simon Poole 
> *To: * 
> *Sent: * 8/7/2017 12:08 PM
> *Subject: * Re: [OSM-dev] XAPI
>
> There are multiple reasons why this is not going to work, not the
> least that there have been no public native XAPI servers available
> for a very long time.
>
> See http://wiki.openstreetmap.org/wiki/Xapi
>
> But in any case extracting anything for the whole world from any
> API is not a good idea, I would suggest downloading a planet dump
> and filtering the objects out of it, or asking a friendly operator
> of a osm2pgsql server with the whole planet imported to generate a
> list of schools for you.
>
> The other thing to take in to account, that while we undoubtedly
> have a lot of schools in OSM and in some areas will have 100%
> coverage this is definitely not universal.
>
> Simon
>
>
> Am 07.08.2017 um 17:43 schrieb Fredy Yanez:
>> Good afternoon, 
>>
>>
>> I'm working for a no profit and our goal is to measure internet
>> connectivity for every school in the world. It would be very
>> beneficial is we had access to every school within the database.
>> To do this I've been trying to use XAPI and I'm having a few errors.
>>
>>
>> For example when I try to use XAPI URLs:
>>  wget
>> 
>> --timeout=0http://www.informationfreeway.org/api/0.6/node[amenity=schools]-O
>> data.osm
>> I get this link as a response: 
>>
>> http://www.informationfreeway.org/noapi.html
>>
>>
>> and in data.osm I get :
>>
>> /
>>
>> 
>>
>> No API
>>
>>
>> 
>>
>>
>> I was wondering what I'm doing wrong?
>>
>> My guess is that I'm not authenticating or something along those
>> lines.
>>
>>
>> What is the best way to solve this problem ?
>>
>>
>> Thanks !
>>
>> Fredy
>>
>>
>>
>> ___
>> dev mailing list
>> dev@openstreetmap.org 
>> https://lists.openstreetmap.org/listinfo/dev
>
>
>
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev
>



signature.asc
Description: OpenPGP digital signature
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] XAPI

2017-08-07 Thread Fredy Yanez
Thanks! 


I understand that i might not get 100% coverage. That is okay. Any data that I 
can get is useful.


How would one go about contacting a friendly operator of a osm2pgsql server? 




Fredy




 From:   Simon Poole  
 To:    
 Sent:   8/7/2017 12:08 PM 
 Subject:   Re: [OSM-dev] XAPI 


 
There are multiple reasons why this is not going to work, not the   least 
that there have been no public native XAPI servers available   for a very 
long time. 
See http://wiki.openstreetmap.org/wiki/Xapi 
But in any case extracting anything for the whole world from any   API is 
not a good idea, I would suggest downloading a planet dump   and filtering 
the objects out of it, or asking a friendly operator   of a osm2pgsql 
server with the whole planet imported to generate a   list of schools for 
you. 
The other thing to take in to account, that while we undoubtedly   have a 
lot of schools in OSM and in some areas will have 100%   coverage this is 
definitely not universal. 
  
Simon
  
 
Am 07.08.2017 um 17:43 schrieb Fredy   Yanez:
  Good afternoon,    

  

  
I'm working for a no profit and our goal is to measure internet 
connectivity for every school in the world. It would be very beneficial 
is we had access to every school within the database. To do this I've 
been trying to use XAPI and I'm having a few errors.   

  

  
For example when I try to use XAPI URLs:   
 wget --timeout=0 
http://www.informationfreeway.org/api/0.6/node[amenity=schools] -O data.osm 
  
   
I get this link as a response:    

  
 
http://www.informationfreeway.org/noapi.html 


and in data.osm I get : 
/ 
   
  

No API 


 


I was wondering what I'm doing wrong? 
My guess is that I'm not authenticating or something along those 
lines. 


What is the best way to solve this problem ? 


Thanks ! 
Fredy  
  
   ___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev
  


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


Re: [OSM-dev] XAPI

2017-08-07 Thread Simon Poole
There are multiple reasons why this is not going to work, not the least
that there have been no public native XAPI servers available for a very
long time.

See http://wiki.openstreetmap.org/wiki/Xapi

But in any case extracting anything for the whole world from any API is
not a good idea, I would suggest downloading a planet dump and filtering
the objects out of it, or asking a friendly operator of a osm2pgsql
server with the whole planet imported to generate a list of schools for you.

The other thing to take in to account, that while we undoubtedly have a
lot of schools in OSM and in some areas will have 100% coverage this is
definitely not universal.

Simon


Am 07.08.2017 um 17:43 schrieb Fredy Yanez:
> Good afternoon, 
>
>
> I'm working for a no profit and our goal is to measure internet
> connectivity for every school in the world. It would be very
> beneficial is we had access to every school within the database. To do
> this I've been trying to use XAPI and I'm having a few errors.
>
>
> For example when I try to use XAPI URLs:
>  wget
> --timeout=0http://www.informationfreeway.org/api/0.6/node[amenity=schools]-O
> data.osm
> I get this link as a response: 
>
> http://www.informationfreeway.org/noapi.html
>
>
> and in data.osm I get :
>
> /
>
> 
>
> No API
>
>
> 
>
>
> I was wondering what I'm doing wrong?
>
> My guess is that I'm not authenticating or something along those lines.
>
>
> What is the best way to solve this problem ?
>
>
> Thanks !
>
> Fredy
>
>
>
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev



signature.asc
Description: OpenPGP digital signature
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


[OSM-dev] XAPI

2017-08-07 Thread Fredy Yanez
Good afternoon, 




I'm working for a no profit and our goal is to measure internet connectivity 
for every school in the world. It would be very beneficial is we had access to 
every school within the database. To do this I've been trying to use XAPI and 
I'm having a few errors.




For example when I try to use XAPI URLs:
 wget --timeout=0 
http://www.informationfreeway.org/api/0.6/node[amenity=schools] -O data.osm


I get this link as a response: 


 
http://www.informationfreeway.org/noapi.html


and in data.osm I get :
/

 
No API





I was wondering what I'm doing wrong?
My guess is that I'm not authenticating or something along those lines.


What is the best way to solve this problem ?


Thanks !
Fredy___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev