Subject: | Row ID option? |
Date: | Mon, 22 Aug 2011 14:28:13 +0700 |
To: | bug-Geo-Coder-Bing-Bulk [...] rt.cpan.org |
From: | Barry Price <barryjprice [...] gmail.com> |
Hi,
Your module Geo::Coder::Bing::Bulk looks really useful, but with one
inconvenience - the lack of ID numbers for posted data.
e.g. I have a database full of addresses, each row has a unique ID.
I want to send them all to Bing, and retrieve Lat/Lon coordinates.
Bing will then send me back a series of results with an ID to identify each
row.
However, your module doesn't seem to let me send an ID with each address to
be geocoded.
So Bing sends me back 50,000 rows with auto-generated ID numbers (1..50000)
and I have to do fuzzy address matching to figure out which co-ordinates
match which row of my original data.
Request: Allow the user to send a set of ID/address pairs, eg:
# ============================================================
my @locations;
# location values are id (int), address (string)
$locations[0] = (1, '123 Some Street, Some Town, USA');
$locations[1] = (231, '456 That Street, That Town, France');
$locations[2] = (87612, '789 The Other Street, The Other Town, Australia');
my $id = $bulk->upload(\@locations);
sleep 30 while $bulk->is_pending;
my $data = $bulk->download;
# ============================================================
Does that make sense?
Thanks,
Barry