Geocoder Services in Pharo?
Dear all, do we have a package to access the a geocoder service? Something similar to "geopy". Volkert
Hi Volkert,
On 29 Apr 2017, at 15:01, volkert <volkert@nivoba.de> wrote:
Dear all,
do we have a package to access the a geocoder service? Something similar to "geopy".
Volkert
As far as I know there is no such library. We have it internally, but that part is not open source. But it is not so hard to do yourself. Here is an example for forward geocoding (address -> coordinates): ZnClient new url: 'http://nominatim.openstreetmap.org/search'; queryAt: #format put: 'json'; queryAt: #addressdetails put: '1'; queryAt: #q put: 'Villerspark 5, 3500 Hasselt'; queryAt: #countrycodes put: 'be'; accept: ZnMimeType applicationJson; contentReader: [ :entity | STONJSON fromString: entity contents ]; get. Here is an example for reverse geocoding (coordinates -> address): ZnClient new url: 'http://nominatim.openstreetmap.org/reverse'; queryAt: #format put: 'json'; queryAt: #lon put: 5.33732 asString; queryAt: #lat put: 50.926 asString; accept: ZnMimeType applicationJson; contentReader: [ :entity | STONJSON fromString: entity contents ]; get. These are against the OpenStreetMap Nomatim service, others are similar. HTH, Sven
Hi Sven, thanks for your fast response and the snippets. I scanned the different geocoder classes from "geopy" and also the OSM Nominatim docs. Indeed, it is not hard, ..... but if there is already a package, why not using it :-) maybe i start to write such a lib. Thanks, Volkert Am 29.04.2017 um 15:54 schrieb Sven Van Caekenberghe:
Hi Volkert,
On 29 Apr 2017, at 15:01, volkert <volkert@nivoba.de> wrote:
Dear all,
do we have a package to access the a geocoder service? Something similar to "geopy".
Volkert As far as I know there is no such library.
We have it internally, but that part is not open source. But it is not so hard to do yourself.
Here is an example for forward geocoding (address -> coordinates):
ZnClient new url: 'http://nominatim.openstreetmap.org/search'; queryAt: #format put: 'json'; queryAt: #addressdetails put: '1'; queryAt: #q put: 'Villerspark 5, 3500 Hasselt'; queryAt: #countrycodes put: 'be'; accept: ZnMimeType applicationJson; contentReader: [ :entity | STONJSON fromString: entity contents ]; get.
Here is an example for reverse geocoding (coordinates -> address):
ZnClient new url: 'http://nominatim.openstreetmap.org/reverse'; queryAt: #format put: 'json'; queryAt: #lon put: 5.33732 asString; queryAt: #lat put: 50.926 asString; accept: ZnMimeType applicationJson; contentReader: [ :entity | STONJSON fromString: entity contents ]; get.
These are against the OpenStreetMap Nomatim service, others are similar.
HTH,
Sven
volkert Then what would be good is to code it as open-source so that people can join effort. Did you check the packages of geolocalisation developed by Hernan Morales? Stef On Sat, Apr 29, 2017 at 4:18 PM, volkert <volkert@nivoba.de> wrote:
Hi Sven,
thanks for your fast response and the snippets. I scanned the different geocoder classes from "geopy" and also the OSM Nominatim docs. Indeed, it is not hard, ..... but if there is already a package, why not using it :-)
maybe i start to write such a lib.
Thanks, Volkert
Am 29.04.2017 um 15:54 schrieb Sven Van Caekenberghe:
Hi Volkert,
On 29 Apr 2017, at 15:01, volkert <volkert@nivoba.de> wrote:
Dear all,
do we have a package to access the a geocoder service? Something similar to "geopy".
Volkert
As far as I know there is no such library.
We have it internally, but that part is not open source. But it is not so hard to do yourself.
Here is an example for forward geocoding (address -> coordinates):
ZnClient new url: 'http://nominatim.openstreetmap.org/search'; queryAt: #format put: 'json'; queryAt: #addressdetails put: '1'; queryAt: #q put: 'Villerspark 5, 3500 Hasselt'; queryAt: #countrycodes put: 'be'; accept: ZnMimeType applicationJson; contentReader: [ :entity | STONJSON fromString: entity contents ]; get.
Here is an example for reverse geocoding (coordinates -> address):
ZnClient new url: 'http://nominatim.openstreetmap.org/reverse'; queryAt: #format put: 'json'; queryAt: #lon put: 5.33732 asString; queryAt: #lat put: 50.926 asString; accept: ZnMimeType applicationJson; contentReader: [ :entity | STONJSON fromString: entity contents ]; get.
These are against the OpenStreetMap Nomatim service, others are similar.
HTH,
Sven
of course :-) yes, i am trying to load the package GADM in Pharo 5, but it failed ... :-( Volkert Am 30.04.2017 um 09:57 schrieb Stephane Ducasse:
volkert
Then what would be good is to code it as open-source so that people can join effort. Did you check the packages of geolocalisation developed by Hernan Morales? Stef
On Sat, Apr 29, 2017 at 4:18 PM, volkert <volkert@nivoba.de <mailto:volkert@nivoba.de>> wrote:
Hi Sven,
thanks for your fast response and the snippets. I scanned the different geocoder classes from "geopy" and also the OSM Nominatim docs. Indeed, it is not hard, ..... but if there is already a package, why not using it :-)
maybe i start to write such a lib.
Thanks, Volkert
Am 29.04.2017 um 15:54 schrieb Sven Van Caekenberghe:
Hi Volkert,
On 29 Apr 2017, at 15:01, volkert <volkert@nivoba.de <mailto:volkert@nivoba.de>> wrote:
Dear all,
do we have a package to access the a geocoder service? Something similar to "geopy".
Volkert
As far as I know there is no such library.
We have it internally, but that part is not open source. But it is not so hard to do yourself.
Here is an example for forward geocoding (address -> coordinates):
ZnClient new url: 'http://nominatim.openstreetmap.org/search <http://nominatim.openstreetmap.org/search>'; queryAt: #format put: 'json'; queryAt: #addressdetails put: '1'; queryAt: #q put: 'Villerspark 5, 3500 Hasselt'; queryAt: #countrycodes put: 'be'; accept: ZnMimeType applicationJson; contentReader: [ :entity | STONJSON fromString: entity contents ]; get.
Here is an example for reverse geocoding (coordinates -> address):
ZnClient new url: 'http://nominatim.openstreetmap.org/reverse <http://nominatim.openstreetmap.org/reverse>'; queryAt: #format put: 'json'; queryAt: #lon put: 5.33732 asString; queryAt: #lat put: 50.926 asString; accept: ZnMimeType applicationJson; contentReader: [ :entity | STONJSON fromString: entity contents ]; get.
These are against the OpenStreetMap Nomatim service, others are similar.
HTH,
Sven
may be this is only for pharo40. Does it have a configurationOf? Because this is strange Stef On Sun, Apr 30, 2017 at 10:17 AM, volkert <volkert@nivoba.de> wrote:
of course :-)
yes, i am trying to load the package GADM in Pharo 5, but it failed ... :-(
Volkert
Am 30.04.2017 um 09:57 schrieb Stephane Ducasse:
volkert
Then what would be good is to code it as open-source so that people can join effort. Did you check the packages of geolocalisation developed by Hernan Morales? Stef
On Sat, Apr 29, 2017 at 4:18 PM, volkert <volkert@nivoba.de> wrote:
Hi Sven,
thanks for your fast response and the snippets. I scanned the different geocoder classes from "geopy" and also the OSM Nominatim docs. Indeed, it is not hard, ..... but if there is already a package, why not using it :-)
maybe i start to write such a lib.
Thanks, Volkert
Am 29.04.2017 um 15:54 schrieb Sven Van Caekenberghe:
Hi Volkert,
On 29 Apr 2017, at 15:01, volkert <volkert@nivoba.de> wrote:
Dear all,
do we have a package to access the a geocoder service? Something similar to "geopy".
Volkert
As far as I know there is no such library.
We have it internally, but that part is not open source. But it is not so hard to do yourself.
Here is an example for forward geocoding (address -> coordinates):
ZnClient new url: 'http://nominatim.openstreetmap.org/search'; queryAt: #format put: 'json'; queryAt: #addressdetails put: '1'; queryAt: #q put: 'Villerspark 5, 3500 Hasselt'; queryAt: #countrycodes put: 'be'; accept: ZnMimeType applicationJson; contentReader: [ :entity | STONJSON fromString: entity contents ]; get.
Here is an example for reverse geocoding (coordinates -> address):
ZnClient new url: 'http://nominatim.openstreetmap.org/reverse'; queryAt: #format put: 'json'; queryAt: #lon put: 5.33732 asString; queryAt: #lat put: 50.926 asString; accept: ZnMimeType applicationJson; contentReader: [ :entity | STONJSON fromString: entity contents ]; get.
These are against the OpenStreetMap Nomatim service, others are similar.
HTH,
Sven
See http://catalog.pharo.org/ and search for GADM Am 30.04.2017 um 12:29 schrieb Stephane Ducasse:
may be this is only for pharo40. Does it have a configurationOf? Because this is strange
Stef
On Sun, Apr 30, 2017 at 10:17 AM, volkert <volkert@nivoba.de <mailto:volkert@nivoba.de>> wrote:
of course :-)
yes, i am trying to load the package GADM in Pharo 5, but it failed ... :-(
Volkert
Am 30.04.2017 um 09:57 schrieb Stephane Ducasse:
volkert
Then what would be good is to code it as open-source so that people can join effort. Did you check the packages of geolocalisation developed by Hernan Morales? Stef
On Sat, Apr 29, 2017 at 4:18 PM, volkert <volkert@nivoba.de <mailto:volkert@nivoba.de>> wrote:
Hi Sven,
thanks for your fast response and the snippets. I scanned the different geocoder classes from "geopy" and also the OSM Nominatim docs. Indeed, it is not hard, ..... but if there is already a package, why not using it :-)
maybe i start to write such a lib.
Thanks, Volkert
Am 29.04.2017 um 15:54 schrieb Sven Van Caekenberghe:
Hi Volkert,
On 29 Apr 2017, at 15:01, volkert <volkert@nivoba.de <mailto:volkert@nivoba.de>> wrote:
Dear all,
do we have a package to access the a geocoder service? Something similar to "geopy".
Volkert
As far as I know there is no such library.
We have it internally, but that part is not open source. But it is not so hard to do yourself.
Here is an example for forward geocoding (address -> coordinates):
ZnClient new url: 'http://nominatim.openstreetmap.org/search <http://nominatim.openstreetmap.org/search>'; queryAt: #format put: 'json'; queryAt: #addressdetails put: '1'; queryAt: #q put: 'Villerspark 5, 3500 Hasselt'; queryAt: #countrycodes put: 'be'; accept: ZnMimeType applicationJson; contentReader: [ :entity | STONJSON fromString: entity contents ]; get.
Here is an example for reverse geocoding (coordinates -> address):
ZnClient new url: 'http://nominatim.openstreetmap.org/reverse <http://nominatim.openstreetmap.org/reverse>'; queryAt: #format put: 'json'; queryAt: #lon put: 5.33732 asString; queryAt: #lat put: 50.926 asString; accept: ZnMimeType applicationJson; contentReader: [ :entity | STONJSON fromString: entity contents ]; get.
These are against the OpenStreetMap Nomatim service, others are similar.
HTH,
Sven
Hi Volkert Territorial (https://github.com/hernanmd/Territorial), is a library for geographical information retrieval. GADM is included in Territorial but is mainly for boundaries. The feature you ask for is not there yet, but if you want to try out other features or look for integration you can install it by doing: Metacello new smalltalkhubUser: âhernanâ project: âTerritorialâ; configuration: âTerritorialâ; version: #âdevelopmentâ; load. Cheers, Hernán 2017-04-30 5:17 GMT-03:00 volkert <volkert@nivoba.de>:
of course :-)
yes, i am trying to load the package GADM in Pharo 5, but it failed ... :-(
Volkert
Am 30.04.2017 um 09:57 schrieb Stephane Ducasse:
volkert
Then what would be good is to code it as open-source so that people can join effort. Did you check the packages of geolocalisation developed by Hernan Morales? Stef
On Sat, Apr 29, 2017 at 4:18 PM, volkert <volkert@nivoba.de> wrote:
Hi Sven,
thanks for your fast response and the snippets. I scanned the different geocoder classes from "geopy" and also the OSM Nominatim docs. Indeed, it is not hard, ..... but if there is already a package, why not using it :-)
maybe i start to write such a lib.
Thanks, Volkert
Am 29.04.2017 um 15:54 schrieb Sven Van Caekenberghe:
Hi Volkert,
On 29 Apr 2017, at 15:01, volkert <volkert@nivoba.de> wrote:
Dear all,
do we have a package to access the a geocoder service? Something similar to "geopy".
Volkert
As far as I know there is no such library.
We have it internally, but that part is not open source. But it is not so hard to do yourself.
Here is an example for forward geocoding (address -> coordinates):
ZnClient new url: 'http://nominatim.openstreetmap.org/search'; queryAt: #format put: 'json'; queryAt: #addressdetails put: '1'; queryAt: #q put: 'Villerspark 5, 3500 Hasselt'; queryAt: #countrycodes put: 'be'; accept: ZnMimeType applicationJson; contentReader: [ :entity | STONJSON fromString: entity contents ]; get.
Here is an example for reverse geocoding (coordinates -> address):
ZnClient new url: 'http://nominatim.openstreetmap.org/reverse'; queryAt: #format put: 'json'; queryAt: #lon put: 5.33732 asString; queryAt: #lat put: 50.926 asString; accept: ZnMimeType applicationJson; contentReader: [ :entity | STONJSON fromString: entity contents ]; get.
These are against the OpenStreetMap Nomatim service, others are similar.
HTH,
Sven
Dear Hernán, cool, really nice work. will have a closer look :-) It really is too bad, that it is so hard to find such cool packages. i im really missing a kind currated list of all the cool pharo packages around. somthing like awesome python, f.e. "https://github.com/vinta/awesome-python" BW, Volkert PS: Btw, loading the OSM support package failed (following the instruction on Page 45 of your docu). Am 01.05.2017 um 06:18 schrieb Hernán Morales Durand:
Hi Volkert
Territorial (https://github.com/hernanmd/Territorial), is a library for geographical information retrieval. GADM is included in Territorial but is mainly for boundaries. The feature you ask for is not there yet, but if you want to try out other features or look for integration you can install it by doing:
Metacello new smalltalkhubUser: âhernanâ project: âTerritorialâ; configuration: âTerritorialâ; version: #âdevelopmentâ; load.
Cheers,
Hernán
2017-04-30 5:17 GMT-03:00 volkert <volkert@nivoba.de <mailto:volkert@nivoba.de>>:
of course :-)
yes, i am trying to load the package GADM in Pharo 5, but it failed ... :-(
Volkert
Am 30.04.2017 um 09:57 schrieb Stephane Ducasse:
volkert
Then what would be good is to code it as open-source so that people can join effort. Did you check the packages of geolocalisation developed by Hernan Morales? Stef
On Sat, Apr 29, 2017 at 4:18 PM, volkert <volkert@nivoba.de <mailto:volkert@nivoba.de>> wrote:
Hi Sven,
thanks for your fast response and the snippets. I scanned the different geocoder classes from "geopy" and also the OSM Nominatim docs. Indeed, it is not hard, ..... but if there is already a package, why not using it :-)
maybe i start to write such a lib.
Thanks, Volkert
Am 29.04.2017 um 15:54 schrieb Sven Van Caekenberghe:
Hi Volkert,
On 29 Apr 2017, at 15:01, volkert <volkert@nivoba.de <mailto:volkert@nivoba.de>> wrote:
Dear all,
do we have a package to access the a geocoder service? Something similar to "geopy".
Volkert
As far as I know there is no such library.
We have it internally, but that part is not open source. But it is not so hard to do yourself.
Here is an example for forward geocoding (address -> coordinates):
ZnClient new url: 'http://nominatim.openstreetmap.org/search <http://nominatim.openstreetmap.org/search>'; queryAt: #format put: 'json'; queryAt: #addressdetails put: '1'; queryAt: #q put: 'Villerspark 5, 3500 Hasselt'; queryAt: #countrycodes put: 'be'; accept: ZnMimeType applicationJson; contentReader: [ :entity | STONJSON fromString: entity contents ]; get.
Here is an example for reverse geocoding (coordinates -> address):
ZnClient new url: 'http://nominatim.openstreetmap.org/reverse <http://nominatim.openstreetmap.org/reverse>'; queryAt: #format put: 'json'; queryAt: #lon put: 5.33732 asString; queryAt: #lat put: 50.926 asString; accept: ZnMimeType applicationJson; contentReader: [ :entity | STONJSON fromString: entity contents ]; get.
These are against the OpenStreetMap Nomatim service, others are similar.
HTH,
Sven
Hi hernan I'm starting a booklet collection for Pharo. I should shape the web site and I'm working like a mad producing the first items: On Mon, May 1, 2017 at 10:36 AM, volkert <volkert@nivoba.de> wrote:
Dear Hernán,
cool, really nice work. will have a closer look :-)
It really is too bad, that it is so hard to find such cool packages. i im really missing a kind currated list of all the cool pharo packages around. somthing like awesome python, f.e. "https://github.com/vinta/ awesome-python" <https://github.com/vinta/awesome-python> BW, Volkert PS: Btw, loading the OSM support package failed (following the instruction on Page 45 of your docu).
Am 01.05.2017 um 06:18 schrieb Hernán Morales Durand:
Hi Volkert
Territorial (https://github.com/hernanmd/Territorial), is a library for geographical information retrieval. GADM is included in Territorial but is mainly for boundaries. The feature you ask for is not there yet, but if you want to try out other features or look for integration you can install it by doing:
Metacello new smalltalkhubUser: âhernanâ project: âTerritorialâ; configuration: âTerritorialâ; version: #âdevelopmentâ; load.
Cheers,
Hernán
2017-04-30 5:17 GMT-03:00 volkert <volkert@nivoba.de>:
of course :-)
yes, i am trying to load the package GADM in Pharo 5, but it failed ... :-(
Volkert
Am 30.04.2017 um 09:57 schrieb Stephane Ducasse:
volkert
Then what would be good is to code it as open-source so that people can join effort. Did you check the packages of geolocalisation developed by Hernan Morales? Stef
On Sat, Apr 29, 2017 at 4:18 PM, volkert <volkert@nivoba.de> wrote:
Hi Sven,
thanks for your fast response and the snippets. I scanned the different geocoder classes from "geopy" and also the OSM Nominatim docs. Indeed, it is not hard, ..... but if there is already a package, why not using it :-)
maybe i start to write such a lib.
Thanks, Volkert
Am 29.04.2017 um 15:54 schrieb Sven Van Caekenberghe:
Hi Volkert,
On 29 Apr 2017, at 15:01, volkert <volkert@nivoba.de> wrote:
Dear all,
do we have a package to access the a geocoder service? Something similar to "geopy".
Volkert
As far as I know there is no such library.
We have it internally, but that part is not open source. But it is not so hard to do yourself.
Here is an example for forward geocoding (address -> coordinates):
ZnClient new url: 'http://nominatim.openstreetmap.org/search'; queryAt: #format put: 'json'; queryAt: #addressdetails put: '1'; queryAt: #q put: 'Villerspark 5, 3500 Hasselt'; queryAt: #countrycodes put: 'be'; accept: ZnMimeType applicationJson; contentReader: [ :entity | STONJSON fromString: entity contents ]; get.
Here is an example for reverse geocoding (coordinates -> address):
ZnClient new url: 'http://nominatim.openstreetmap.org/reverse'; queryAt: #format put: 'json'; queryAt: #lon put: 5.33732 asString; queryAt: #lat put: 50.926 asString; accept: ZnMimeType applicationJson; contentReader: [ :entity | STONJSON fromString: entity contents ]; get.
These are against the OpenStreetMap Nomatim service, others are similar.
HTH,
Sven
- sven reddit - Smacc doc - Glorp - Magritte We will have a nice look and make sure that people can print them in spiral format. if you want Territorial to be in let me know. On Mon, May 1, 2017 at 11:01 AM, Stephane Ducasse <stepharo.self@gmail.com> wrote:
Hi hernan
I'm starting a booklet collection for Pharo. I should shape the web site and I'm working like a mad producing the first items:
On Mon, May 1, 2017 at 10:36 AM, volkert <volkert@nivoba.de> wrote:
Dear Hernán,
cool, really nice work. will have a closer look :-)
It really is too bad, that it is so hard to find such cool packages. i im really missing a kind currated list of all the cool pharo packages around. somthing like awesome python, f.e. "https://github.com/vinta/awes ome-python" <https://github.com/vinta/awesome-python> BW, Volkert PS: Btw, loading the OSM support package failed (following the instruction on Page 45 of your docu).
Am 01.05.2017 um 06:18 schrieb Hernán Morales Durand:
Hi Volkert
Territorial (https://github.com/hernanmd/Territorial), is a library for geographical information retrieval. GADM is included in Territorial but is mainly for boundaries. The feature you ask for is not there yet, but if you want to try out other features or look for integration you can install it by doing:
Metacello new smalltalkhubUser: âhernanâ project: âTerritorialâ; configuration: âTerritorialâ; version: #âdevelopmentâ; load.
Cheers,
Hernán
2017-04-30 5:17 GMT-03:00 volkert <volkert@nivoba.de>:
of course :-)
yes, i am trying to load the package GADM in Pharo 5, but it failed ... :-(
Volkert
Am 30.04.2017 um 09:57 schrieb Stephane Ducasse:
volkert
Then what would be good is to code it as open-source so that people can join effort. Did you check the packages of geolocalisation developed by Hernan Morales? Stef
On Sat, Apr 29, 2017 at 4:18 PM, volkert <volkert@nivoba.de> wrote:
Hi Sven,
thanks for your fast response and the snippets. I scanned the different geocoder classes from "geopy" and also the OSM Nominatim docs. Indeed, it is not hard, ..... but if there is already a package, why not using it :-)
maybe i start to write such a lib.
Thanks, Volkert
Am 29.04.2017 um 15:54 schrieb Sven Van Caekenberghe:
Hi Volkert,
On 29 Apr 2017, at 15:01, volkert <volkert@nivoba.de> wrote:
Dear all,
do we have a package to access the a geocoder service? Something similar to "geopy".
Volkert
As far as I know there is no such library.
We have it internally, but that part is not open source. But it is not so hard to do yourself.
Here is an example for forward geocoding (address -> coordinates):
ZnClient new url: 'http://nominatim.openstreetmap.org/search'; queryAt: #format put: 'json'; queryAt: #addressdetails put: '1'; queryAt: #q put: 'Villerspark 5, 3500 Hasselt'; queryAt: #countrycodes put: 'be'; accept: ZnMimeType applicationJson; contentReader: [ :entity | STONJSON fromString: entity contents ]; get.
Here is an example for reverse geocoding (coordinates -> address):
ZnClient new url: 'http://nominatim.openstreetmap.org/reverse'; queryAt: #format put: 'json'; queryAt: #lon put: 5.33732 asString; queryAt: #lat put: 50.926 asString; accept: ZnMimeType applicationJson; contentReader: [ :entity | STONJSON fromString: entity contents ]; get.
These are against the OpenStreetMap Nomatim service, others are similar.
HTH,
Sven
Yes Stef, it would be really cool for Territorial to be included there. Cheers, Hernán 2017-05-01 6:02 GMT-03:00 Stephane Ducasse <stepharo.self@gmail.com>:
- sven reddit - Smacc doc - Glorp - Magritte
We will have a nice look and make sure that people can print them in spiral format. if you want Territorial to be in let me know.
On Mon, May 1, 2017 at 11:01 AM, Stephane Ducasse <stepharo.self@gmail.com
wrote:
Hi hernan
I'm starting a booklet collection for Pharo. I should shape the web site and I'm working like a mad producing the first items:
On Mon, May 1, 2017 at 10:36 AM, volkert <volkert@nivoba.de> wrote:
Dear Hernán,
cool, really nice work. will have a closer look :-)
It really is too bad, that it is so hard to find such cool packages. i im really missing a kind currated list of all the cool pharo packages around. somthing like awesome python, f.e. "https://github.com/vinta/awesome-python" <https://github.com/vinta/awesome-python> BW, Volkert PS: Btw, loading the OSM support package failed (following the instruction on Page 45 of your docu).
Am 01.05.2017 um 06:18 schrieb Hernán Morales Durand:
Hi Volkert
Territorial (https://github.com/hernanmd/Territorial), is a library for geographical information retrieval. GADM is included in Territorial but is mainly for boundaries. The feature you ask for is not there yet, but if you want to try out other features or look for integration you can install it by doing:
Metacello new smalltalkhubUser: âhernanâ project: âTerritorialâ; configuration: âTerritorialâ; version: #âdevelopmentâ; load.
Cheers,
Hernán
2017-04-30 5:17 GMT-03:00 volkert <volkert@nivoba.de>:
of course :-)
yes, i am trying to load the package GADM in Pharo 5, but it failed ... :-(
Volkert
Am 30.04.2017 um 09:57 schrieb Stephane Ducasse:
volkert
Then what would be good is to code it as open-source so that people can join effort. Did you check the packages of geolocalisation developed by Hernan Morales? Stef
On Sat, Apr 29, 2017 at 4:18 PM, volkert <volkert@nivoba.de> wrote:
Hi Sven,
thanks for your fast response and the snippets. I scanned the different geocoder classes from "geopy" and also the OSM Nominatim docs. Indeed, it is not hard, ..... but if there is already a package, why not using it :-)
maybe i start to write such a lib.
Thanks, Volkert
Am 29.04.2017 um 15:54 schrieb Sven Van Caekenberghe:
Hi Volkert,
On 29 Apr 2017, at 15:01, volkert <volkert@nivoba.de> wrote:
Dear all,
do we have a package to access the a geocoder service? Something similar to "geopy".
Volkert
As far as I know there is no such library.
We have it internally, but that part is not open source. But it is not so hard to do yourself.
Here is an example for forward geocoding (address -> coordinates):
ZnClient new url: 'http://nominatim.openstreetmap.org/search'; queryAt: #format put: 'json'; queryAt: #addressdetails put: '1'; queryAt: #q put: 'Villerspark 5, 3500 Hasselt'; queryAt: #countrycodes put: 'be'; accept: ZnMimeType applicationJson; contentReader: [ :entity | STONJSON fromString: entity contents ]; get.
Here is an example for reverse geocoding (coordinates -> address):
ZnClient new url: 'http://nominatim.openstreetmap.org/reverse'; queryAt: #format put: 'json'; queryAt: #lon put: 5.33732 asString; queryAt: #lat put: 50.926 asString; accept: ZnMimeType applicationJson; contentReader: [ :entity | STONJSON fromString: entity contents ]; get.
These are against the OpenStreetMap Nomatim service, others are similar.
HTH,
Sven
Ok I will let you know when the template is ready. Right now I'm trying to see and I will talk with damien. On Mon, May 1, 2017 at 3:25 PM, Hernán Morales Durand < hernan.morales@gmail.com> wrote:
Yes Stef, it would be really cool for Territorial to be included there. Cheers,
Hernán
2017-05-01 6:02 GMT-03:00 Stephane Ducasse <stepharo.self@gmail.com>:
- sven reddit - Smacc doc - Glorp - Magritte
We will have a nice look and make sure that people can print them in spiral format. if you want Territorial to be in let me know.
On Mon, May 1, 2017 at 11:01 AM, Stephane Ducasse < stepharo.self@gmail.com> wrote:
Hi hernan
I'm starting a booklet collection for Pharo. I should shape the web site and I'm working like a mad producing the first items:
On Mon, May 1, 2017 at 10:36 AM, volkert <volkert@nivoba.de> wrote:
Dear Hernán,
cool, really nice work. will have a closer look :-)
It really is too bad, that it is so hard to find such cool packages. i im really missing a kind currated list of all the cool pharo packages around. somthing like awesome python, f.e. "https://github.com/vinta/awesome-python" <https://github.com/vinta/awesome-python> BW, Volkert PS: Btw, loading the OSM support package failed (following the instruction on Page 45 of your docu).
Am 01.05.2017 um 06:18 schrieb Hernán Morales Durand:
Hi Volkert
Territorial (https://github.com/hernanmd/Territorial), is a library for geographical information retrieval. GADM is included in Territorial but is mainly for boundaries. The feature you ask for is not there yet, but if you want to try out other features or look for integration you can install it by doing:
Metacello new smalltalkhubUser: âhernanâ project: âTerritorialâ; configuration: âTerritorialâ; version: #âdevelopmentâ; load.
Cheers,
Hernán
2017-04-30 5:17 GMT-03:00 volkert <volkert@nivoba.de>:
of course :-)
yes, i am trying to load the package GADM in Pharo 5, but it failed ... :-(
Volkert
Am 30.04.2017 um 09:57 schrieb Stephane Ducasse:
volkert
Then what would be good is to code it as open-source so that people can join effort. Did you check the packages of geolocalisation developed by Hernan Morales? Stef
On Sat, Apr 29, 2017 at 4:18 PM, volkert <volkert@nivoba.de> wrote:
Hi Sven,
thanks for your fast response and the snippets. I scanned the different geocoder classes from "geopy" and also the OSM Nominatim docs. Indeed, it is not hard, ..... but if there is already a package, why not using it :-)
maybe i start to write such a lib.
Thanks, Volkert
Am 29.04.2017 um 15:54 schrieb Sven Van Caekenberghe:
Hi Volkert,
On 29 Apr 2017, at 15:01, volkert <volkert@nivoba.de> wrote:
Dear all,
do we have a package to access the a geocoder service? Something similar to "geopy".
Volkert
As far as I know there is no such library.
We have it internally, but that part is not open source. But it is not so hard to do yourself.
Here is an example for forward geocoding (address -> coordinates):
ZnClient new url: 'http://nominatim.openstreetmap.org/search'; queryAt: #format put: 'json'; queryAt: #addressdetails put: '1'; queryAt: #q put: 'Villerspark 5, 3500 Hasselt'; queryAt: #countrycodes put: 'be'; accept: ZnMimeType applicationJson; contentReader: [ :entity | STONJSON fromString: entity contents ]; get.
Here is an example for reverse geocoding (coordinates -> address):
ZnClient new url: 'http://nominatim.openstreetmap.org/reverse'; queryAt: #format put: 'json'; queryAt: #lon put: 5.33732 asString; queryAt: #lat put: 50.926 asString; accept: ZnMimeType applicationJson; contentReader: [ :entity | STONJSON fromString: entity contents ]; get.
These are against the OpenStreetMap Nomatim service, others are similar.
HTH,
Sven
participants (4)
-
Hernán Morales Durand -
Stephane Ducasse -
Sven Van Caekenberghe -
volkert