Hi,
I have been customizing Canadian dual range address locator. Right now I am working on customizing the locator to deal with addresses with apartment/suite numbers.
The code at this moment are able to geocode address that has apt/suite numbers at the end or beginning
for ex: 11 Sherwood Avenue Suite 228 or Apt#2019, 121 Davisville Avenue
But it cannot geocode the addresses when apartment numbers are written in a special way (a somewhat common way of writing in Toronto):
For example (re-written the addresses mentioned above): 228-11 Sherwood Avenue, 2019-121 Davisville Avenue...
Any hint on how to accommodate this way of writing addresses?
There is a section in the lot file 'Units and numbers at the beginning of address'..where
the separator is defined by 'OptNumSeparator'
the OptNumSeparator definition refers to Numseparator:
<def name="OptNumSeparator">
<alt>
<elt ref="NumSeparator"/>
</alt>
<alt/>
</def>
and the NumSeparator is defined as below:
<def name="NumSeparator">
<alt>-</alt>
<alt>#</alt>
<alt>/</alt>
</def>
So it seems that "-" separator is already defined and I can't seem to understand why it is not geocoding this addresses with this specific separator (ex: 228-21 Sherwood Avenue)
Thanks in advance
Kazi
I have been customizing Canadian dual range address locator. Right now I am working on customizing the locator to deal with addresses with apartment/suite numbers.
The code at this moment are able to geocode address that has apt/suite numbers at the end or beginning
for ex: 11 Sherwood Avenue Suite 228 or Apt#2019, 121 Davisville Avenue
But it cannot geocode the addresses when apartment numbers are written in a special way (a somewhat common way of writing in Toronto):
For example (re-written the addresses mentioned above): 228-11 Sherwood Avenue, 2019-121 Davisville Avenue...
Any hint on how to accommodate this way of writing addresses?
There is a section in the lot file 'Units and numbers at the beginning of address'..where
the separator is defined by 'OptNumSeparator'
the OptNumSeparator definition refers to Numseparator:
<def name="OptNumSeparator">
<alt>
<elt ref="NumSeparator"/>
</alt>
<alt/>
</def>
and the NumSeparator is defined as below:
<def name="NumSeparator">
<alt>-</alt>
<alt>#</alt>
<alt>/</alt>
</def>
So it seems that "-" separator is already defined and I can't seem to understand why it is not geocoding this addresses with this specific separator (ex: 228-21 Sherwood Avenue)
Thanks in advance
Kazi
Agatha Wong
Esri
380 New York St
Redlands, CA 92373