c# - Passing Longitude and Latitude in Twitter Streaming API of Pakistan -
i having problem in passing longitude , latitude format of pakistan in twitter streaming api. api provides sample examples of passing longitude , latitude of cities. location san fransisco in api location example given below , works in program.
-122.75,36.8,-121.75,37.8
but trying use following location tweets pakistan server rejects location.
71.69,32.01,70.69,33.01
kindly me 4 values separated commas should pass allow me tweets pakistan.
each bounding box should specified pair of longitude , latitude pairs, with southwest corner of bounding box coming first.
your co-ordinates of 71.69,32.01,70.69,33.01
give (which seems small part of pakistan, might want have larger box):
so think box isn't being formed correctly because you're not giving bottom left (south west) corner of first. in order give box co-ordinates correctly need have them in format bottom-left-longitude, bottom-left-latitude, top-right-longitude, top-right-latitude
.
try using 70.7,32.1,71.7,33.1
(i've rounded figures) instead give same area suggested originally:
in order whole of pakistan try using: 62.9,25.2,73.3,35.2
give area:
i use this website in order latitude/longitude values. note website gives latitude, longitude twitter wants longitude, latitude. remember swap them around!
Comments
Post a Comment