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
1 answer

Java regex for Uk postcodes with spaces

I'm trying to create a regex matching the following patterns (with and without space): M1 1AA, M60 1NW, CR2 6XH, DN55 1PT, W1A 1HQ and EC1A 1BB I'm very new at this and find it hard to create a functional regex for all the examples…
0
votes
2 answers

sql postcode space

Im trying to make it so that no matter how long the postcode is its always has a space before the last 3 characters. Sometimes i will receive postcodes and people have only typed in 4 characters so code like this : UPDATE [DataTool].[dbo].[EH10414…
user3206687
  • 41
  • 1
  • 8
0
votes
1 answer

Validating the postcode so it can only start with LS

I want to be able to validate the text box so that it will only accept postcodes that start with LS. This is specifically as this company is only delivering parcels in the leeds area, having a bit of nightmare with. …
0
votes
3 answers

Format address string - postal code and flat number

I need to format addres in one string. Now I have properties like: public string Street { get; set; } public string StreetNumber { get; set; } public string FlatNumber { get; set; } public string PostalCode { get; set; } public string City { get;…
mskuratowski
  • 4,014
  • 15
  • 58
  • 109
0
votes
1 answer

Why PayPal API requires postcode/zipcode for Aruba?

As I know Aruba doesn't use postal codes: http://www.answers.com/Q/What_is_Aruba%27s_postal_code If I'm sending a shipping address (country: Aruba!) without postcode via PayPal API I get back an error back: "The specified country requires a postal…
I Printed
  • 1
  • 1
0
votes
1 answer

Getting the outer path of a region

I want to get the shapes of an area via overpass that is defined by the first two letters of the postal code. This query: rel["boundary"="postal_code"][postal_code~"32..."]; out geom; gets me a number of areas that I want to combine. I am…
0
votes
1 answer

How to plot postcodes and their 'centre of mass'

I thought R would be good for this... but am a complete novice at it. I have a set of UK Postcodes (e.g. 'CB2 8UR') and a separate table that maps each postcode to an OS grid coordinate. Both start as CSV: file1: "pcd" "CB2 8UR" "TE3…
rivimey
  • 921
  • 1
  • 7
  • 24
0
votes
1 answer

Entity framework updates wrong table

I have a huge problem with one of our old applications. It is c# with Entity Framework. Now I have a table Person (Name, StreetName, Phone, PostCodeId etc.) and another table PostCode (Id, PostCode, CityName). I have an edit form where the user can…
nivs1978
  • 1,126
  • 14
  • 20
0
votes
2 answers

Regex to specific rule

I need to recreate this logic using regex. if $postcode.length > 0 and $postcode.length < 10 AND $postcode's first character is a letter and (second or third character is a number) then it's a match. I came up with this following…
Mokky Miah
  • 1,213
  • 2
  • 11
  • 29
0
votes
1 answer

Form address postal code auto-complete https request and CORS workaround

I'm building a form (php) and i want to people put their postal code, and the address gets automatically filled. I'm having two problems: First, these requests are made by my https page, so if the API that provides me the data is http, it will…
Lucas M.
  • 145
  • 1
  • 12
0
votes
2 answers

Autofill state and postcode according to the city in magento checkout page

Hi guys i have searched for it a lot but didn't find a good solution of it. I want to auto fill the postcode and state of Australia after customer enters their city in magento checkout page.What would be the best way to achieve this?Can you…
Navin Bista
  • 1,988
  • 2
  • 21
  • 37
0
votes
1 answer

Google Geocoder returns incomplete zipcode

I am using the google geocoder to check if the address a user has entered is correct. For example, the user enters correct street and city name but wrong zip code. I want to check if the zip code from google is different than the one entered and…
user2433934
0
votes
1 answer

Single Line Address in Postcode Anywhere?

I am trying to implement Postcode Anywhere into my site but can't seem to get the whole address into one text field. Has anyone used this software before and if so how can you do it?? It only puts one line in the text field such as just the postcode…
0
votes
1 answer

Javascript regex error with 'm' flag, 'invalid regexp group' when regex is valid and working elsewhere

This line of regex is breaking in javascipt, however when using a regex tester it works correctly: var pattern = new RegExp(/^(?m)^([A-Z0-9]{2,4})(?:\s*[A-Z0-9]{3})?$/); "SL44BZ".match(pattern); How do I make this work with javascript's .match()?…
CafeHey
  • 5,699
  • 19
  • 82
  • 145
0
votes
2 answers

Offline UK Postcode Database With Geographic Coordinates

Is it possible to query a UK Postcode Database that is available offline and gather Geo Coordinates with JavaScript? I am under the impression that the database is too vast to do this without online/local database management. Has anyone found a…
Thomas
  • 523
  • 2
  • 9
  • 23