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 <volk...@nivoba.de
<mailto:volk...@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 <volk...@nivoba.de
<mailto:volk...@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 <volk...@nivoba.de
<mailto:volk...@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