Re: Detecting an Address inside of a string

2009-09-15 Thread Kyle Decot

I can't always geocode the results though because sometimes the users
just search for something like "free" or "outdoor". I know it would be
impossible to catch ALL of the addresses but I would just like to do
the most common ones that I've seen people search for on my website.
Perhaps I could have a series of regex's that it goes, though and if a
match is found, the geocode is performed, and if not then a full text
search or something occurs. I am a novice when it comes to regular
expressions so I was hoping someone could give me some examples or
their thoughts on the subject.



On Sep 15, 6:20 pm, "euromark (munich)" 
wrote:
> which so many possible "human" formats, this is close to unachievable
>
> you could just geocode it anyway which google api etc
> and maybe they have some smart algorithms
>
> the zip, city and adress string itself is not the main problem
> this can be achieved with only few mistakes by using regex etc.
>
> but something like close to, within must be really difficult
>
> On 15 Sep., 21:08, Kyle Decot  wrote:
>
>
>
> > When my users enter something like "something near 123 Main St", I'd
> > like to be able to detect that and Geocode my results. How would I
> > detect this? Some other examples I'd like to work w/ are:
>
> > "something within 40 miles of 43112"
>
> > Thanks for any help you can provide
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Detecting an Address inside of a string

2009-09-15 Thread euromark (munich)

which so many possible "human" formats, this is close to unachievable

you could just geocode it anyway which google api etc
and maybe they have some smart algorithms

the zip, city and adress string itself is not the main problem
this can be achieved with only few mistakes by using regex etc.

but something like close to, within must be really difficult


On 15 Sep., 21:08, Kyle Decot  wrote:
> When my users enter something like "something near 123 Main St", I'd
> like to be able to detect that and Geocode my results. How would I
> detect this? Some other examples I'd like to work w/ are:
>
> "something within 40 miles of 43112"
>
> Thanks for any help you can provide
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Detecting an Address inside of a string

2009-09-15 Thread Kyle Decot

When my users enter something like "something near 123 Main St", I'd
like to be able to detect that and Geocode my results. How would I
detect this? Some other examples I'd like to work w/ are:

"something within 40 miles of 43112"

Thanks for any help you can provide
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---