Questions tagged [postal-code]

A postal code is a series of letters and/or digits which is useful to identify the a particular region within a postal address. Once postal codes were introduced, other applications became possible.

A postal code is a series of letters and/or digits which is useful to identify the a particular region within a postal address. Once postal codes were introduced, other applications became possible.

In February 2005, 117 of the 190 member countries of the Universal Postal Union had postal code systems. Countries that do not have national systems include Ireland and Panama. Although Hong Kong and Macau are now Special Administrative Regions of China, each maintains its own long-established postal system, which does not utilize postal codes for domestic mail, and no postal codes are assigned to Hong Kong and Macau. Mail between Hong Kong, Macau and mainland China is treated as international.

399 questions
2
votes
1 answer

Can there be a postal code area which falls on to multiple time zones?

Can there be a city/place which has some postal code 'XXXX' and it falls in to 2 or more time zones? I'm not sure if this question is even valid or not. But because of the overwhelming information regarding locations and time zones in the Internet…
pabz
  • 534
  • 1
  • 5
  • 15
2
votes
1 answer

Searching for postal code map of Germany for R

I'm searching for a map of Germany which is divided into the different postal codes and could be coloured in R. Possible would be a map like this on…
T. Beige
  • 177
  • 12
2
votes
2 answers

How do I build a UK postcode area map in R?

Input I have count data by first 2 letter UK postcode in this form: Postcode Count BD 45 DE 123 L8 90 Desired output I would like to create a postcode map using a shapefile based on the 2 letter postcode, and colour the map based…
user2174781
2
votes
3 answers

mySQL select zipcodes within x km/miles within range of y

Note: Although I use a zipcode database with Dutch zipcodes, this question is country independent. I have a database with every zipcode in the Netherlands + its x and y coordinate (lat/long). I have for example zipcode: $baseZipCode = 1044; with the…
Wouter Dorgelo
  • 11,770
  • 11
  • 62
  • 80
2
votes
3 answers

Select records based zipcode, it's radius, lat and lon in MySQL

Below is my company table with it's postalcode, lat, lon and the radius in kilometers where each company is able to provide his services. id company_name city postalcode radiu latitude longitude 1 A …
O Connor
  • 4,236
  • 15
  • 50
  • 91
2
votes
2 answers

Phonetically searching postal code with Solr 5.4

Using Solr 5.4, I am trying to index and search postal codes phonetically. I have tried combining NGramFilterFactory and BeiderMorseFilterFactory, but doesn't seem to work. For example, I want to store and index "AB11 9RD" and search as "a B 11 nine…
2
votes
1 answer

Java - Zip Code Validator not working?

I'm having a few issues with my zip code validator which reads a text file with UK postcodes then returns true or false after validation. Below is the section of code I'm having issues with particularly (ZipCodeValidator) which is public and should…
user5581153
2
votes
1 answer

Google Maps API and Google Maps location shows different location in PHP

I am integrating my client website with Google APIs, and I have a task to validate the user address by using the user's postcode (UK), and to get the address, I have used https://ideal-postcodes.co.uk/. So, when a user enter a postcode, then an ajax…
RKD
  • 405
  • 1
  • 5
  • 16
2
votes
1 answer

Is there a way to cross locations of Sainsburys with BP garages to get places where they are together?

I've seen a photo I'd like to trace the location of. In it is a BP garage and a Sainsburys supermarket. Google Maps holds all the info and I'm sure many others do - what I'd like is to be able to quickly do a join-type operation on the data. It…
pbhj
  • 276
  • 3
  • 15
2
votes
2 answers

extracting postal code from addresses

I am looking for a solution in c# to extract postal code info from address. The postal codes of following countries Canada,US,Germany,UK,Turkey,France,Pakistan,India,Italy. The address can be something like these 188 pleasant street, new minas,…
fc123
  • 898
  • 3
  • 16
  • 40
2
votes
2 answers

Nominatim Openstreet map search based on Canada Postal Code

I have installed Nominatim in my ubuntu 12.0.4 OS. I have downloaded North America- Canada osm map data from http://download.geofabrik.de/north-america/canada.html url and installed in postgresql. Now the problem is that I have searched 3485…
NIrav Modi
  • 6,038
  • 8
  • 32
  • 47
2
votes
1 answer

Format Royal Mail PAF

I'm formatting addresses imported from the Sample Royal Mail PAF to Royal Mail Specification. In the programmer's guide there are two examples with similar fields: Table 8: Building Number in the Building Name field Field on PAF …
Asa Carter
  • 2,207
  • 5
  • 32
  • 62
2
votes
4 answers

Postcode and radius lookup recommendations

I look after a number of divisional websites for a uk based membership organisation and what we want to do is provide, as well as other address functions, is a closest member lookup to a web user from the websites themselves. A few use cases that I…
WestDiscGolf
  • 4,098
  • 2
  • 32
  • 47
2
votes
2 answers

Regex to match the first half of a UK postcode

I need a regex to match the first half of a uk postcode, and it's possible just one half or a full post code could get passed in. There is great way to match full postcode here: UK Postcode Regex (Comprehensive) However I need to just get the first…
CafeHey
  • 5,699
  • 19
  • 82
  • 145
2
votes
2 answers

Reformat postcodes to include a space

Is there a reliable process (using MySQL) to reformat UK postcodes which contain no spaces so that they do? For example: CM75GJ -> CM7 5GJ L269XR -> L26 9XR YO265TD -> YO26 5TD
xylar
  • 7,433
  • 17
  • 55
  • 100