Minimum result size for geocoding
-
- Posts: 5
- Joined: Wed Dec 16, 2015 12:45 pm
Minimum result size for geocoding
For reverse geocoding there is an option to set ENGINE_MINSIZE to an integer value. The returned result must be at least as big. Is there a similar option for "normal" geocoding?
Re: Minimum result size for geocoding
I don't think that there is such a option. But I also do not understand the use case behind this. What do you expect such an option would do for example if you enter a completely valid addres including house number? Then there is only 1 valid option to return in my opinion.
-
- Posts: 5
- Joined: Wed Dec 16, 2015 12:45 pm
Re: Minimum result size for geocoding
My use case would be to always have at least one result returned. Thus the entered address could be returned.
- Bernd Welter
- Site Admin
- Posts: 2695
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Minimum result size for geocoding
Hello Benjamin,
if you provide an invalid address such as
Country = GER
City = Munich
Street = SCHNICKSCHNACK (which doesn't exist)
our algorithms try to identify alternative addresses and cut the result (GER Munich, Schnickstraße).
If there are no alternatives found on street level we escalate to a more surficial level such as "GER Munich" and so on.
The strategy here is - as Joost already explained - return something if it is meaningful but not in any case.
Compared to SQL:
If you request a SELECT TOP 1 * FROM TheMagicTableWithBillionsOfDatarecords WHERE ImpossibleCondition you will get an empty result set though you specify the TOP statement.
Best regards Bernd
if you provide an invalid address such as
Country = GER
City = Munich
Street = SCHNICKSCHNACK (which doesn't exist)
our algorithms try to identify alternative addresses and cut the result (GER Munich, Schnickstraße).
If there are no alternatives found on street level we escalate to a more surficial level such as "GER Munich" and so on.
The strategy here is - as Joost already explained - return something if it is meaningful but not in any case.
Compared to SQL:
If you request a SELECT TOP 1 * FROM TheMagicTableWithBillionsOfDatarecords WHERE ImpossibleCondition you will get an empty result set though you specify the TOP statement.
Best regards Bernd