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

How to find postcodes/zipcodes in a specified radius around a given postcode (JS/GO)

I'm making a search feature for a website which needs to return results close to the postcode that the user inputs to the search. It would function similarly to the search function on https://www.rightmove.co.uk/ but does not need to also accept…
0
votes
1 answer

First Json Array is not parsing using Retrofit and Kotlin Coroutine in kotlin

I get Village,City, Dist using ZipPostal code Api.Retrofit Network library and kotlin coroutines. I used https://api.postalpincode.in/pincode/{PINCODE}. Give Error is "com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected…
Pinkesh
  • 61
  • 3
  • 12
0
votes
1 answer

Uk Postcode lookup field with covering a range of districts

Need some efficient solution of district range selector for an area in UK. Lets say I selected Manchester which covers many small districts like M1,M2,M3.....M20, M30... My users can be sharing responsibility of some of the districts of Manchester…
Manish
  • 39
  • 1
  • 8
0
votes
1 answer

Imrove regex in Python (2.7) to find short / incomplete UK postcodes

I have a little function that finds full UK postcodes (e.g. DE2 7TT) in strings and returns them accordingly. However, I'd like to change it to ALSO return postcodes it gets where there's either one or two letters and then one or two numbers (e.g.…
ratuk_
  • 27
  • 6
0
votes
1 answer

left-join twice with duplicate values

I am trying to left_join two datasets and minimize duplicates from the join. The purpose of joining the data is to match information from df_2 that relates to coordinates of a postcode for each a buyer and a seller in df_1.

 At the moment I am…
lenlen
  • 79
  • 7
0
votes
1 answer

How to make a simple JavaScript redirection based on submitted form value?

I want to define 4 arrays with specific postal codes for each location, and then based on a postal code (value of a user-submitted form) I want to redirect user to a new location. I have no idea what I am doing wrong (I am not a coder). I am trying…
0
votes
1 answer

How replace all cases in columns with NA if there are more than x numbers OR more than x letters in the string?

I have data that looks a bit like this col1 col2 1 "1042AZ" 2 "9523 pa" 3 "dog" 4 "New York" 5 "20000 (usa)" 6 "Outside the country" 7 "1052" I want to keep everything that is only 4 numbers is only 4 numbers…
Victor Nielsen
  • 443
  • 2
  • 14
0
votes
0 answers

Is it possible to calculate distances between European postcodes in Excel as a lookup?

I have over 24,000 lines of data in Excel and am looking to calculate distances between European addresses. Currently doing this address by address and wanted to know if extracting this data was possible....which has led me to this forum. Only…
0
votes
1 answer

How to add a space within a string if it doesn't already have one?

I am working with UK post code data and, from what I've seen, they usually have 5, 6 or 7 characters with a space between them; examples include "EC2A 2FA", "HU8 9XL" and "E1 6AW". The problem I have is that some of the post codes in the dataset do…
0
votes
7 answers

Parsing ZIP (Postal) code from US address with Java

The question is how do you detect 5 digits following each other in string. Ergo finding US postal code. Side note: I'd like to use the code with GWT so there are limitations on regex and third party libraries. Otherwise I would just use…
MatBanik
  • 26,356
  • 39
  • 116
  • 178
0
votes
1 answer

Select to pull Zip code based both foreign and domestic

I need to write a T-SQL procedure where the parameter is zip code. We've got the following parameter declared. declare @postal_code varchar(10) Sample data in table: postal_codes NULL 46383 074523632 B4H34 113601419 ZH/8600 A1G…
YelizavetaYR
  • 1,611
  • 6
  • 21
  • 37
0
votes
1 answer

does paypal provide services for getting sales tax w.r.t zip code for US?

I am using paypal for my payments, i wanted to include the tax thing w.r.t zip code. like when customer enters the zip code i could get the sales tax percentage w.r.t that zip code. I believe there will be any way of it in paypal but unfortunately i…
makki
  • 2,097
  • 3
  • 23
  • 34
0
votes
3 answers

PHP string functions not working as expected on numbers cast as string

I have the following code which places a space in postcode. (string)$postcode = $row['postcode']; $first = substr($postcode, strlen($postcode)-3); $second = substr($postcode, strlen($first)); $postcode = $first . ' ' . $second; The code works fine…
whistlegull
  • 61
  • 1
  • 1
  • 3
0
votes
2 answers

Reverse geocoding - getting postal code with geopy.Nominatim

I am trying already for a few hours and I don't know what I should do. I have a dataframe with latitude and longitude data: year month lat lon SMI 0 2010 1 47.266481 10.149783 0.830187 1 2010 2 47.266481 …
0
votes
2 answers

Compare two Alphanumerical mysql columns (Find postcode district between range)

I have a mysql database that contains a range of postcode district ranges. I am trying to find the row that matches the given district, in this example 'SY18'. I have mysql query below, but it returns both the values in the table because the fields…