CraueGeoBundle icon indicating copy to clipboard operation
CraueGeoBundle copied to clipboard

Add location name (city) to database table

Open webdevilopers opened this issue 10 years ago • 2 comments

I think the city resp. location name for a postalCode can be very useful.

I can make a PR for this as soon I am available if you like @craue .

webdevilopers avatar Nov 21 '14 11:11 webdevilopers

The bundle assumes that each postal code is unique for a country and maps to one location (latitude + longitude), which is not exactly the case in the real world. When importing data the same postal code may appear several times for slightly different locations and with different names. So I don't think it's a good idea trying so save the name as well.

craue avatar Nov 22 '14 12:11 craue

I'm thinking about a location search where you choose your country and then type a postal code or city name.

This could then easily be achieved by using your bundles table which adds a great feature, don't you think?

But i get you point too. So for this use case you recommend overriding the addEntries method for the fixtures and extend your existing GeoPostalCode Entity?

webdevilopers avatar Nov 24 '14 11:11 webdevilopers