Retrieve postal codes by city

Discussion created by apekop on May 20, 2014

I need to find a postal code when searching for a city. I know this can of course result in multiple postal codes but I only need one. It doesn't really matter which one, but I prefer the one in the center. Does anyone know if this is possible and how? For now I can search for a city, but no postal codes are returned. Background: I need a postal code to send to another service, which returns differtent addresses which should be shown on a map.

I've also posted this in the Javascript API forum section, but I'm actually using the REST API.

Kind regards,