craue / CraueGeoBundle

Doctrine functions for calculating geographical distances in your Symfony project.
MIT License
124 stars 15 forks source link

Added a method for calculating miles between to GeoPostalCodes #3

Closed rrehbein closed 12 years ago

craue commented 12 years ago

How do you actually use this? Would it be more useful to add DQL functions which return miles?

rrehbein commented 12 years ago

The methods are for getting the distance without a database. Additionally, you already have GeoDistance DQL function defined in your bundle.

As for using these methods, perhaps I'm not planning on using the rest of the bundle correctly. I was intending to setup mapping from some entities zipcode to lat-long, and doing a collection of calculations in php rather then in the database.

craue commented 12 years ago

Then I'm not sure if such code would fit into this bundle.