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
0
votes
2 answers

Faster searching in Python - Postcodes

I have been working on a no-sql solution to naming a list of N postcodes using a national list of postcodes. So far I have my reference dictionary for the state of NSW in the form : {'Belowra': 2545, 'Yambulla': 2550, 'Bingie': 2537, ...…
lm5050
  • 789
  • 7
  • 10
0
votes
1 answer

Using ONS API for Electoral Ward & Constituency

Need the functionality on a site I'm making to get a user's electoral ward & constituency from a UK postcode which has been entered. I have been using https://www.uk-postcodes.com/ where you'd make a simple file_get_contents() call like…
Chris98
  • 567
  • 1
  • 4
  • 16
0
votes
1 answer

Any ideal way to calculate the travel time by two different postal code through mapquest api?

There is address provided in column database but any ways able to calcalute time of two distance using postal code? Supposed we used mapquest api.
JohnnyCc
  • 525
  • 1
  • 8
  • 23
0
votes
2 answers

Postal-Code to City autocomplete

I'm currently trying to do the following: I have two input fields, like this:
nameless
  • 1,483
  • 5
  • 32
  • 78
0
votes
1 answer

form to check the first half of UK postcode against an array

I need a small form to check the first half of UK postcode. Ive added the first half of the postcodes in an array. The form has a simple input field and submit button. When the user types in first half of a postcode for example N1 I want the form…
Sami
  • 1
  • 1
  • 5
0
votes
2 answers

regexp drupal shipping quotes ubercart postcodes

hopefully someone can help me. I'm new to regexp... I'm creating a commerce website for a local florists. They offer free postage within the local area (postcodes CM11 and CM12), and i'm looking to create fixed prices for further distances up to a…
0
votes
6 answers

Validation of Canadian postal code fails when whitespace inside

I'm trying to write a program that will validate a Canadian postal code. Given the two formats A1A1A1 A1A 1A1 Problem I have problems getting my code to recognize the white space in the second format. When I validate for the second format, it…
Arima
  • 13
  • 1
  • 5
0
votes
2 answers

regex conflict phone number and postal code

I want to extract a postal code from a blob of text. My postal code is six digits long and can be 560011 or 560 011. I have used regex (/[0-9]{3}[ ]?[0-9]{3}/), but this also captures the first 6 digits of my phone number. I tried using [^0-9] after…
moinsy
  • 83
  • 7
0
votes
2 answers

UK Postcode area in Redshift

Im trying to extract the first part of a UK postcode using SQL (Redshift) For example, BT28 8YT should return BT - so basically the first one or two alphabetical characters, but it should not return a number. I'm finding the UK Govt regex a little…
Pythonn00b
  • 325
  • 1
  • 4
  • 20
0
votes
2 answers

Postalcode for multiple countries

Having a column that mixes German (5 digits) and Austrian (4 digits) postal codes. How can I make Tableau understand both correctly? The column reads something like postal-code 53173 99848 1080 1030 I assigned a geo-role to a second column that…
Rentrop
  • 20,979
  • 10
  • 72
  • 100
0
votes
1 answer

Best way to validate long list of random postal codes

I have a long list of postal codes I have to validate. Link to postal codes As you can see it's quite random there is no real order. I tried making a switch and put in everything by hand like so: switch (true) { case…
C.Schubert
  • 2,034
  • 16
  • 20
0
votes
2 answers

R: Match Polygons from Shapefile 1 to Area Codes in shapefile 2

I was asked whether R can work with shapefiles - I never worked with shapefiles myself before, but I am sure, others must have come across this kind of question! I have two shapefiles: a) shapefile 1 (PolygonSamples.shp) contains a list of polygons…
user2006697
  • 1,107
  • 2
  • 11
  • 25
0
votes
2 answers

Postcode distance calculation

I have just been developing a postcode distance calculator for my Dads company, where all our customers are kept on file and every time a new potential customer makes an enquiry the system will check against all other customers' postcodes. The…
ClarkeyBoy
  • 4,934
  • 12
  • 49
  • 64
0
votes
1 answer

How to do Geo IP or postcode lookup against Geonames data

I am using the freely available geonames data locally to do autocomplete searches during the sign up stage on one of my websites. I am having trouble working out the best way to make the form more user friendly by auto selecting a geoname based on…
Andrew Cetinic
  • 2,805
  • 29
  • 44
0
votes
0 answers

UK Postcode Lookup - Google Geocode - Javascript

I'm trying to modify an existing UK postcode lookup so that it looks and acts differently: A normal/standard form button A Textarea for the result Instead of returning address1(house number), allow the user to manually enter house…
user2229747
  • 221
  • 2
  • 20